Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.trapezium.space
Class IlistEnumeration  view IlistEnumeration download IlistEnumeration.java

java.lang.Object
  extended bycom.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
 

Field Detail

ilist

int[] ilist

listSize

int listSize

idx

int idx
Constructor Detail

IlistEnumeration

IlistEnumeration(int[] ilist,
                 int listSize)
Class constructor

Method Detail

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