|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jmlspecs.models.JMLEnumerationToIterator
A wrapper that makes any JMLEnumeration into a JMLIterator that does not support the remove operation.
JMLEnumeration,
JMLIterator,
Iterator| Field Summary | |
protected JMLEnumeration |
theEnumeration
|
| Constructor Summary | |
JMLEnumerationToIterator(JMLEnumeration e)
Initialize this iterator with the given Enumeration. |
|
| Method Summary | |
Object |
clone()
Return a clone of this iterator. |
boolean |
equals(Object oth)
Return true just when this iterator has the same state as the given argument. |
int |
hashCode()
Return a hash code for this iterator. |
boolean |
hasNext()
Tells whether this has more uniterated elements. |
Object |
next()
Return the next element in this, if there is one. |
void |
remove()
The remove operation is not supported in this type. |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected final JMLEnumeration theEnumeration
| Constructor Detail |
public JMLEnumerationToIterator(JMLEnumeration e)
| Method Detail |
public boolean hasNext()
hasNext in interface JMLIterator
public Object next()
throws JMLNoSuchElementException
next in interface IteratorJMLNoSuchElementException - when this is empty.
public void remove()
throws UnsupportedOperationException
remove in interface IteratorUnsupportedOperationExceptionpublic Object clone()
clone in interface JMLIteratorclone in class Objectpublic 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 | ||||||||||