|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.melati.poem.util.LimitedEnumeration<T>
public class LimitedEnumeration<T>
An Enumeration
representing the first n
elements of another Enumeration
.
Constructor Summary | |
---|---|
LimitedEnumeration(Enumeration<T> base,
int limit)
Constructor. |
Method Summary | |
---|---|
boolean |
hasMoreElements()
|
T |
nextElement()
|
void |
skip()
Skip an Element. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LimitedEnumeration(Enumeration<T> base, int limit)
base
- the underlying Enumerationlimit
- the excluded limitMethod Detail |
---|
public boolean hasMoreElements()
hasMoreElements
in interface Enumeration<T>
Enumeration.hasMoreElements()
public T nextElement() throws NoSuchElementException
nextElement
in interface Enumeration<T>
NoSuchElementException
Enumeration.nextElement()
public void skip() throws NoSuchElementException
skip
in interface SkipEnumeration<T>
NoSuchElementException
- if there are no more ElementsSkipEnumeration.skip()
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |