java.lang.Object
speiger.src.collections.bytes.utils.ByteSplititerators
Helper class that provides SplitIterators for normal and stream usage
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic Spliterator.OfIntcreateArrayJavaSplititerator(byte[] array, int characteristics) Creates A stream compatible split iterator without copying the original array or boxingstatic Spliterator.OfIntcreateArrayJavaSplititerator(byte[] array, int size, int characteristics) Creates A stream compatible split iterator without copying the original array or boxingstatic Spliterator.OfIntcreateArrayJavaSplititerator(byte[] array, int offset, int size, int characteristics) Creates A stream compatible split iterator without copying the original array or boxingstatic ByteSplititeratorcreateArraySplititerator(byte[] array, int characteristics) Creates a Type Specific SplitIterator to reduce boxing/unboxingstatic ByteSplititeratorcreateArraySplititerator(byte[] array, int size, int characteristics) Creates a Type Specific SplitIterator to reduce boxing/unboxingstatic ByteSplititeratorcreateArraySplititerator(byte[] array, int offset, int size, int characteristics) Creates a Type Specific SplitIterator to reduce boxing/unboxingstatic Spliterator.OfIntcreateJavaSplititerator(ByteCollection collection, int characteristics) Creates a stream compatible split iterator without copying it or boxing itstatic Spliterator.OfIntcreateSizedJavaSplititerator(ByteIterator iterator, long size, int characteristics) Creates a stream compatible split iterator without copying it or boxing itstatic ByteSplititeratorcreateSizedSplititerator(ByteIterator iterator, long size, int characteristics) Creates a Type Specific SplitIterator to reduce boxing/unboxingstatic ByteSplititeratorcreateSplititerator(ByteCollection collection, int characteristics) Creates a Type Specific SplitIterator to reduce boxing/unboxingstatic Spliterator.OfIntcreateUnknownJavaSplititerator(ByteIterator iterator, int characteristics) Creates a stream compatible split iterator without copying it or boxing itstatic ByteSplititeratorcreateUnknownSplititerator(ByteIterator iterator, int characteristics) Creates a Type Specific SplitIterator to reduce boxing/unboxing
-
Konstruktordetails
-
ByteSplititerators
public ByteSplititerators()
-
-
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(byte[] 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(byte[] 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(ByteCollection 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(ByteIterator 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(ByteIterator 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 ByteSplititerator createArraySplititerator(byte[] 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 ByteSplititerator createArraySplititerator(byte[] 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
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 ByteSplititerator createUnknownSplititerator(ByteIterator 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 ByteSplititerator createSizedSplititerator(ByteIterator 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
-