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
ConstructorsConstructorDescriptionHybridIterator(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, waitMethods inherited from interface java.util.Enumeration
asIteratorMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods 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:
hasMoreElementsin interfaceEnumeration<T>
-
nextElement
- Specified by:
nextElementin interfaceEnumeration<T>
-
iterator
-