|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Common protocol of the JML model collection types.
The use of elementType and containsNull in this specification
follows the ESC/Java specification of Collection.
That is, these ghost fields are used by the user of the object to
state what types of objects are allowed to be added to the collection,
and hence what is guaranteed to be retrieved from the collection. They
are not adjusted by methods based on the content of the collection.
JMLEnumeration,
JMLIterator| Method Summary | |
boolean |
has(Object elem)
Tell whether the argument is equal to one of the elements in this collection, using the notion of element equality appropriate for the collection. |
int |
int_size()
Tell the number of elements in this collection. |
JMLIterator |
iterator()
The type of the elements in this collection. |
| Methods inherited from interface org.jmlspecs.models.JMLType |
clone, equals, hashCode |
| Method Detail |
public JMLIterator iterator()
public boolean has(Object elem)
public int int_size()
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||