public class ObjectSplititerators
extends java.lang.Object
| Constructor and Description |
|---|
ObjectSplititerators() |
| Modifier and Type | Method and Description |
|---|---|
static <T> ObjectSplititerator<T> |
createArraySplititerator(T[] array,
int characteristics)
Creates a Type Specific SplitIterator to reduce boxing/unboxing
|
static <T> ObjectSplititerator<T> |
createArraySplititerator(T[] array,
int size,
int characteristics)
Creates a Type Specific SplitIterator to reduce boxing/unboxing
|
static <T> ObjectSplititerator<T> |
createArraySplititerator(T[] array,
int offset,
int size,
int characteristics)
Creates a Type Specific SplitIterator to reduce boxing/unboxing
|
static <T> ObjectSplititerator<T> |
createSizedSplititerator(ObjectIterator<T> iterator,
long size,
int characteristics)
Creates a Type Specific SplitIterator to reduce boxing/unboxing
|
static <T> ObjectSplititerator<T> |
createSplititerator(ObjectCollection<T> collection,
int characteristics)
Creates a Type Specific SplitIterator to reduce boxing/unboxing
|
static <T> ObjectSplititerator<T> |
createUnknownSplititerator(ObjectIterator<T> iterator,
int characteristics)
Creates a Type Specific SplitIterator to reduce boxing/unboxing
|
public static <T> ObjectSplititerator<T> createArraySplititerator(T[] array, int characteristics)
T - the type of elements maintained by this Collectionarray - that should be wrapped into a split iteratorcharacteristics - characteristics properties of this spliterator's source or elements.public static <T> ObjectSplititerator<T> createArraySplititerator(T[] array, int size, int characteristics)
T - the type of elements maintained by this Collectionarray - that should be wrapped into a split iteratorsize - the maximum index within the arraycharacteristics - characteristics properties of this spliterator's source or elements.java.lang.IllegalStateException - if the size is outside of the array sizepublic static <T> ObjectSplititerator<T> createArraySplititerator(T[] array, int offset, int size, int characteristics)
T - the type of elements maintained by this Collectionarray - that should be wrapped into a split iteratoroffset - the starting index of the arraysize - the maximum index within the arraycharacteristics - characteristics properties of this spliterator's source or elements.java.lang.IllegalStateException - the offset and size are outside of the arrays rangepublic static <T> ObjectSplititerator<T> createSplititerator(ObjectCollection<T> collection, int characteristics)
T - the type of elements maintained by this Collectioncollection - the collection that should be wrapped in a split iteratorcharacteristics - characteristics properties of this spliterator's source or elements.public static <T> ObjectSplititerator<T> createUnknownSplititerator(ObjectIterator<T> iterator, int characteristics)
T - the type of elements maintained by this Collectioniterator - the Iterator that should be wrapped in a split iteratorcharacteristics - characteristics properties of this spliterator's source or elements.public static <T> ObjectSplititerator<T> createSizedSplititerator(ObjectIterator<T> iterator, long size, int characteristics)
T - the type of elements maintained by this Collectioniterator - the collection that should be wrapped in a split iteratorsize - the amount of elements in the iteratorcharacteristics - characteristics properties of this spliterator's source or elements.