Modul speiger.src.collections
Klasse ObjectSplititerators
java.lang.Object
speiger.src.collections.objects.utils.ObjectSplititerators
Helper class that provides SplitIterators for normal and stream usage
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic <T> ObjectSplititerator<T>createArraySplititerator(T[] array, int characteristics) Creates a Type Specific SplitIterator to reduce boxing/unboxingstatic <T> ObjectSplititerator<T>createArraySplititerator(T[] array, int size, int characteristics) Creates a Type Specific SplitIterator to reduce boxing/unboxingstatic <T> ObjectSplititerator<T>createArraySplititerator(T[] array, int offset, int size, int characteristics) Creates a Type Specific SplitIterator to reduce boxing/unboxingstatic <T> ObjectSplititerator<T>createSizedSplititerator(ObjectIterator<T> iterator, long size, int characteristics) Creates a Type Specific SplitIterator to reduce boxing/unboxingstatic <T> ObjectSplititerator<T>createSplititerator(ObjectCollection<T> collection, int characteristics) Creates a Type Specific SplitIterator to reduce boxing/unboxingstatic <T> ObjectSplititerator<T>createUnknownSplititerator(ObjectIterator<T> iterator, int characteristics) Creates a Type Specific SplitIterator to reduce boxing/unboxing
-
Konstruktordetails
-
ObjectSplititerators
public ObjectSplititerators()
-
-
Methodendetails
-
createArraySplititerator
Creates a Type Specific SplitIterator to reduce boxing/unboxing- Typparameter:
T- the keyType of elements maintained by this Collection- Parameter:
array- that should be wrapped into a split iteratorcharacteristics- characteristics properties of this spliterator's source or elements.- Gibt zurück:
- a Type Specific SplitIterator
-
createArraySplititerator
public static <T> ObjectSplititerator<T> createArraySplititerator(T[] array, int size, int characteristics) Creates a Type Specific SplitIterator to reduce boxing/unboxing- Typparameter:
T- the keyType of elements maintained by this Collection- Parameter:
array- that should be wrapped into a split iteratorsize- the maximum index within the arraycharacteristics- characteristics properties of this spliterator's source or elements.- Gibt zurück:
- a Type Specific SplitIterator
- Löst aus:
IllegalStateException- if the size is outside of the array size
-
createArraySplititerator
public static <T> ObjectSplititerator<T> createArraySplititerator(T[] array, int offset, int size, int characteristics) Creates a Type Specific SplitIterator to reduce boxing/unboxing- Typparameter:
T- the keyType of elements maintained by this Collection- Parameter:
array- 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.- Gibt zurück:
- a Type Specific SplitIterator
- Löst aus:
IllegalStateException- the offset and size are outside of the arrays range
-
createSplititerator
public static <T> ObjectSplititerator<T> createSplititerator(ObjectCollection<T> collection, int characteristics) Creates a Type Specific SplitIterator to reduce boxing/unboxing- Typparameter:
T- the keyType of elements maintained by this Collection- Parameter:
collection- the collection that should be wrapped in a split iteratorcharacteristics- characteristics properties of this spliterator's source or elements.- Gibt zurück:
- a Type Specific SplitIterator
-
createUnknownSplititerator
public static <T> ObjectSplititerator<T> createUnknownSplititerator(ObjectIterator<T> iterator, int characteristics) Creates a Type Specific SplitIterator to reduce boxing/unboxing- Typparameter:
T- the keyType of elements maintained by this Collection- Parameter:
iterator- the Iterator that should be wrapped in a split iteratorcharacteristics- characteristics properties of this spliterator's source or elements.- Gibt zurück:
- a Type Specific SplitIterator
-
createSizedSplititerator
public static <T> ObjectSplititerator<T> createSizedSplititerator(ObjectIterator<T> iterator, long size, int characteristics) Creates a Type Specific SplitIterator to reduce boxing/unboxing- Typparameter:
T- the keyType of elements maintained by this Collection- Parameter:
iterator- 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.- Gibt zurück:
- a Type Specific SplitIterator
-