java.lang.Object
com.trapezium.space.IlistEnumeration
- All Implemented Interfaces:
- java.util.Enumeration
- class IlistEnumeration
- extends java.lang.Object
- implements java.util.Enumeration
The IlistEnumeration is used to enumerate "-1" terminated integer
lists. It has more elements as long as there is a sequence left
that is terminated by the end of the list of a "-1" (whichever comes
first)
|
Field Summary |
(package private) int |
idx
|
(package private) int[] |
ilist
|
(package private) int |
listSize
|
|
Constructor Summary |
(package private) |
IlistEnumeration(int[] ilist,
int listSize)
Class constructor |
|
Method Summary |
boolean |
hasMoreElements()
There are more sequences if the internal index hasn't reached the
end of the integer list. |
java.lang.Object |
nextElement()
Return an Integer indicating the next element in the list |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ilist
int[] ilist
listSize
int listSize
idx
int idx
IlistEnumeration
IlistEnumeration(int[] ilist,
int listSize)
- Class constructor
hasMoreElements
public boolean hasMoreElements()
- There are more sequences if the internal index hasn't reached the
end of the integer list.
- Specified by:
hasMoreElements in interface java.util.Enumeration
nextElement
public java.lang.Object nextElement()
- Return an Integer indicating the next element in the list
- Specified by:
nextElement in interface java.util.Enumeration