Modul speiger.src.collections
Klasse ShortSplititerators
java.lang.Object
speiger.src.collections.shorts.utils.ShortSplititerators
Helper class that provides SplitIterators for normal and stream usage
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic Spliterator.OfIntcreateArrayJavaSplititerator(short[] array, int characteristics) Creates A stream compatible split iterator without copying the original array or boxingstatic Spliterator.OfIntcreateArrayJavaSplititerator(short[] array, int size, int characteristics) Creates A stream compatible split iterator without copying the original array or boxingstatic Spliterator.OfIntcreateArrayJavaSplititerator(short[] array, int offset, int size, int characteristics) Creates A stream compatible split iterator without copying the original array or boxingstatic ShortSplititeratorcreateArraySplititerator(short[] array, int characteristics) Creates a Type Specific SplitIterator to reduce boxing/unboxingstatic ShortSplititeratorcreateArraySplititerator(short[] array, int size, int characteristics) Creates a Type Specific SplitIterator to reduce boxing/unboxingstatic ShortSplititeratorcreateArraySplititerator(short[] array, int offset, int size, int characteristics) Creates a Type Specific SplitIterator to reduce boxing/unboxingstatic Spliterator.OfIntcreateJavaSplititerator(ShortCollection collection, int characteristics) Creates a stream compatible split iterator without copying it or boxing itstatic Spliterator.OfIntcreateSizedJavaSplititerator(ShortIterator iterator, long size, int characteristics) Creates a stream compatible split iterator without copying it or boxing itstatic ShortSplititeratorcreateSizedSplititerator(ShortIterator iterator, long size, int characteristics) Creates a Type Specific SplitIterator to reduce boxing/unboxingstatic ShortSplititeratorcreateSplititerator(ShortCollection collection, int characteristics) Creates a Type Specific SplitIterator to reduce boxing/unboxingstatic Spliterator.OfIntcreateUnknownJavaSplititerator(ShortIterator iterator, int characteristics) Creates a stream compatible split iterator without copying it or boxing itstatic ShortSplititeratorcreateUnknownSplititerator(ShortIterator iterator, int characteristics) Creates a Type Specific SplitIterator to reduce boxing/unboxing
-
Konstruktordetails
-
ShortSplititerators
public ShortSplititerators()
-
-
Methodendetails
-
createArrayJavaSplititerator
Creates A stream compatible split iterator without copying the original array or boxing- Parameter:
array- that should be wrapped into a split iteratorcharacteristics- characteristics properties of this spliterator's source or elements.- Gibt zurück:
- a split iterator of a Stream compatible type
-
createArrayJavaSplititerator
public static Spliterator.OfInt createArrayJavaSplititerator(short[] array, int size, int characteristics) Creates A stream compatible split iterator without copying the original array or boxing- 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 split iterator of a Stream compatible type
- Löst aus:
IllegalStateException- if the size is outside of the array size
-
createArrayJavaSplititerator
public static Spliterator.OfInt createArrayJavaSplititerator(short[] array, int offset, int size, int characteristics) Creates A stream compatible split iterator without copying the original array or boxing- 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 split iterator of a Stream compatible type
- Löst aus:
IllegalStateException- the offset and size are outside of the arrays range
-
createJavaSplititerator
public static Spliterator.OfInt createJavaSplititerator(ShortCollection collection, int characteristics) Creates a stream compatible split iterator without copying it or boxing it- 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 split iterator of a Stream compatible type
-
createUnknownJavaSplititerator
public static Spliterator.OfInt createUnknownJavaSplititerator(ShortIterator iterator, int characteristics) Creates a stream compatible split iterator without copying it or boxing it- 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 split iterator of a Stream compatible type
-
createSizedJavaSplititerator
public static Spliterator.OfInt createSizedJavaSplititerator(ShortIterator iterator, long size, int characteristics) Creates a stream compatible split iterator without copying it or boxing it- 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 split iterator of a Stream compatible type
-
createArraySplititerator
Creates a Type Specific SplitIterator to reduce boxing/unboxing- 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 ShortSplititerator createArraySplititerator(short[] array, int size, int characteristics) Creates a Type Specific SplitIterator to reduce boxing/unboxing- 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 ShortSplititerator createArraySplititerator(short[] array, int offset, int size, int characteristics) Creates a Type Specific SplitIterator to reduce boxing/unboxing- 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 ShortSplititerator createSplititerator(ShortCollection collection, int characteristics) Creates a Type Specific SplitIterator to reduce boxing/unboxing- 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 ShortSplititerator createUnknownSplititerator(ShortIterator iterator, int characteristics) Creates a Type Specific SplitIterator to reduce boxing/unboxing- 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 ShortSplititerator createSizedSplititerator(ShortIterator iterator, long size, int characteristics) Creates a Type Specific SplitIterator to reduce boxing/unboxing- 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
-