Class Iterators
java.lang.Object
net.sf.jstuff.core.collection.iterator.Iterators
- Author:
- Sebastian Thomschke
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> ArrayIterator<T>array(T... array) static <V> CompositeIterator<V>composite(Collection<? extends @Nullable Iterator<? extends V>> iterators) static <V> CompositeIterator<V>static booleanstatic booleancontainsIdentical(Iterator<?> iterator, Object searchFor) static <T> Iterator<T>cycling(Collection<T> items) static <T> Iterator<T>cycling(T... items) static <T> EmptyIterator<T>empty()static <T> SingleObjectIterator<T>single(T object) static intstatic <T> Iterable<T>toIterable(Iterator<T> it) static <T> UnmodifiableIterator<T>unmodifiable(Iterator<T> delegate) static <T> UnmodifiableListIterator<T>unmodifiable(ListIterator<T> delegate)
-
Constructor Details
-
Iterators
public Iterators()
-
-
Method Details
-
array
-
composite
public static <V> CompositeIterator<V> composite(Collection<? extends @Nullable Iterator<? extends V>> iterators) -
composite
@SafeVarargs public static <V> CompositeIterator<V> composite(@NonNullByDefault({}) Iterator<? extends V>... iterators) -
contains
-
containsIdentical
-
cycling
-
cycling
-
empty
-
single
-
size
-
toIterable
-
unmodifiable
-
unmodifiable
-