|
JML | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Sets of integers.
Class Specifications |
instance public invariant_redundantly this.theSet != null; instance public invariant ( \forall org.jmlspecs.models.JMLType e; this.theSet.has(e); e instanceof org.jmlspecs.models.JMLInteger); public initially this.theSet.isEmpty(); |
Specifications inherited from class Object |
represents objectState <- org.jmlspecs.lang.JMLDataGroup.IT; public represents _getClass <- \typeof(this); |
Model Field Summary | |
[instance] JMLValueSet |
theSet
|
Method Summary | |
void |
insert(int elem)
Insert the given integer into this set. |
boolean |
isMember(int elem)
Tell if the argument is in this set. |
void |
remove(int elem)
Remove the given integer from this set. |
Model Field Detail |
public JMLValueSet theSet
Method Detail |
public void insert(int elem)
public boolean isMember(int elem)
public void remove(int elem)
|
JML | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |