public class Iterators extends Object
Iterators.| Constructor and Description |
|---|
Iterators() |
| Modifier and Type | Method and Description |
|---|---|
static <T> Iterator<T> |
fromArray(T[] elements)
Returns an
Iterator over the given elements. |
static <T> Iterator<T> |
fromEnumeration(Enumeration<T> enumeration)
Returns an iterator wrapped around the given enumeration.
|
public static <T> Iterator<T> fromArray(T[] elements)
Iterator over the given elements. The
Iterator.remove() method is not implemented.elements - The elements to wrappublic static <T> Iterator<T> fromEnumeration(Enumeration<T> enumeration)
Iterator.remove() does not do anything.T - The type of the elements to enumerateenumeration - The enumeration to wrapCopyright © 2026. All rights reserved.