|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Objects that are containers of object references. It is the intention that classes that implement JMLObjectType be "containers of objects", in the sense that the user is only interested in the "object references", (addresses) themselves as the elements in the container. (This is in opposition to the intention of classes that implement JMLValueType.) With object containers, the object references are copied in operations that create new instances of the container classes, e.g., clone(). So there is no "deep copy" made with classes that implement JMLObjectType.
JMLType| Method Summary | |
Object |
clone()
Return a shallow copy of this object. |
boolean |
equals(Object ob2)
Tell whether this object is equal to the argument, using == for comparisons to compare contained objects. |
| Methods inherited from interface org.jmlspecs.models.JMLType |
hashCode |
| Method Detail |
public Object clone()
clone in interface JMLTypepublic boolean equals(Object ob2)
equals in interface JMLType
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||