|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.validator.util.IteratorEnumeration<T>
T - The enumerated type.public class IteratorEnumeration<T>
An Enumeration implementation, that wraps an Iterator. Can
be used to integrate older APIs working with enumerations with iterators.
| Constructor Summary | |
|---|---|
IteratorEnumeration(java.util.Iterator<T> source)
Creates a new IterationEnumeration. |
|
| Method Summary | |
|---|---|
boolean |
hasMoreElements()
|
T |
nextElement()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IteratorEnumeration(java.util.Iterator<T> source)
source - The source iterator. Must not be null.| Method Detail |
|---|
public boolean hasMoreElements()
hasMoreElements in interface java.util.Enumeration<T>public T nextElement()
nextElement in interface java.util.Enumeration<T>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||