org.melati.poem.util
Class IntegerEnumeration

Package class diagram package IntegerEnumeration
java.lang.Object
  extended by org.melati.poem.util.IntegerEnumeration
All Implemented Interfaces:
Enumeration<Integer>

public class IntegerEnumeration
extends Object
implements Enumeration<Integer>

An Enumeration of sequential Integers.


Constructor Summary
IntegerEnumeration(int start, int limitP)
          Constructor with lower, included, bound and upper, excluded, bound.
 
Method Summary
 boolean hasMoreElements()
          
 Integer nextElement()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntegerEnumeration

public IntegerEnumeration(int start,
                          int limitP)
Constructor with lower, included, bound and upper, excluded, bound.

Parameters:
start - first element.
limitP - upper, excluded, limit
Method Detail

hasMoreElements

public boolean hasMoreElements()

Specified by:
hasMoreElements in interface Enumeration<Integer>
See Also:
Enumeration.hasMoreElements()

nextElement

public Integer nextElement()
                    throws NoSuchElementException

Specified by:
nextElement in interface Enumeration<Integer>
Throws:
NoSuchElementException
See Also:
Enumeration.nextElement()


Copyright © 2000-2010 PanEris. All Rights Reserved.