|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jmlspecs.samples.sets.IntegerSetAsHashSet
A set of integers as a HashSet.
| Field Summary | |
private HashSet |
hset
|
| Constructor Summary | |
IntegerSetAsHashSet()
Return the abstract value of this IntegerSetAsHashSet. |
|
| Method Summary | |
void |
insert(int i)
Insert the given integer into this set. |
boolean |
isMember(int i)
Tell if the argument is in this set. |
void |
remove(int i)
Remove the given integer from this set. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private HashSet hset
| Constructor Detail |
public IntegerSetAsHashSet()
| Method Detail |
public boolean isMember(int i)
IntegerSetInterface
isMember in interface IntegerSetInterfacepublic void insert(int i)
IntegerSetInterface
insert in interface IntegerSetInterfacepublic void remove(int i)
IntegerSetInterface
remove in interface IntegerSetInterfacepublic String toString()
toString in class Object
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||