Package com.peterphi.std.types
Class HybridIterator<T>
java.lang.Object
com.peterphi.std.types.HybridIterator<T>
- Type Parameters:
T
-
- All Implemented Interfaces:
Iterable<T>
,Enumeration<T>
,Iterator<T>
An Iterator and Enumeration class
-
Constructor Summary
ConstructorDescriptionHybridIterator
(Iterable<T> items) HybridIterator
(Enumeration<T> items) HybridIterator
(Iterator<T> items) HybridIterator
(T[] items) HybridIterator
(T[] items, int offset, int length) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Enumeration
asIterator
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
HybridIterator
-
HybridIterator
-
HybridIterator
-
HybridIterator
-
HybridIterator
-
-
Method Details
-
hasNext
public boolean hasNext() -
next
-
remove
public void remove() -
hasMoreElements
public boolean hasMoreElements()- Specified by:
hasMoreElements
in interfaceEnumeration<T>
-
nextElement
- Specified by:
nextElement
in interfaceEnumeration<T>
-
iterator
-