public class IntegerEnumeration extends Object implements Enumeration<Integer>
Enumeration of sequential Integers.| Constructor and Description |
|---|
IntegerEnumeration(int start,
int limitP)
Constructor with lower, included, bound and upper, excluded, bound.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasMoreElements() |
Integer |
nextElement() |
public IntegerEnumeration(int start,
int limitP)
start - first element.limitP - upper, excluded, limitpublic boolean hasMoreElements()
hasMoreElements in interface Enumeration<Integer>Enumeration.hasMoreElements()public Integer nextElement() throws NoSuchElementException
nextElement in interface Enumeration<Integer>NoSuchElementExceptionEnumeration.nextElement()Copyright © 2000–2021 PanEris. All rights reserved.