|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jmlspecs.models.JMLEqualsBagEnumerator
Enumerators for bags (i.e., multisets) of objects.
JMLEnumeration,
JMLType,
JMLEqualsBag,
JMLEnumerationToIterator| Field Summary | |
protected JMLEqualsBag |
currentBag
The elements that have not yet been returned by nextElement. |
protected int |
currentCount
The remaining count of repetitions that the current entry should be returned. |
protected Object |
currEntry
The current entry. |
| Constructor Summary | |
(package private) |
JMLEqualsBagEnumerator(JMLEqualsBag b)
Initialize this with the given bag. |
| Method Summary | |
protected JMLEqualsBag |
abstractValue()
Return the abstract value of this bag enumerator. |
Object |
clone()
Return a clone of this enumerator. |
boolean |
equals(Object oth)
Return true just when this enumerator has the same state as the given argument.. |
int |
hashCode()
Return a hash code for this enumerator. |
boolean |
hasMoreElements()
Tells whether this enumerator has more uniterated elements. |
Object |
nextElement()
Return the next element in this, if there is one. |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected JMLEqualsBag currentBag
protected int currentCount
protected Object currEntry
| Constructor Detail |
JMLEqualsBagEnumerator(JMLEqualsBag b)
| Method Detail |
public boolean hasMoreElements()
hasMoreElements in interface JMLEnumeration
public Object nextElement()
throws JMLNoSuchElementException
nextElement in interface EnumerationJMLNoSuchElementException - when this is empty.public Object clone()
clone in interface JMLEnumerationclone in class Objectprotected JMLEqualsBag abstractValue()
public boolean equals(Object oth)
equals in interface JMLTypeequals in class Objectpublic int hashCode()
hashCode in interface JMLTypehashCode in class Object
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||