Klasse IntSplititerators

java.lang.Object
speiger.src.collections.ints.utils.IntSplititerators

public class IntSplititerators extends Object
Helper class that provides SplitIterators for normal and stream usage
  • Konstruktordetails

    • IntSplititerators

      public IntSplititerators()
  • Methodendetails

    • createArrayJavaSplititerator

      public static Spliterator.OfInt createArrayJavaSplititerator(int[] array, int characteristics)
      Creates A stream compatible split iterator without copying the original array or boxing
      Parameter:
      array - that should be wrapped into a split iterator
      characteristics - 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(int[] 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 iterator
      size - the maximum index within the array
      characteristics - 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(int[] 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 iterator
      offset - the starting index of the array
      size - the maximum index within the array
      characteristics - 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(IntCollection 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 iterator
      characteristics - 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(IntIterator 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 iterator
      characteristics - 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(IntIterator 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 iterator
      size - the amount of elements in the iterator
      characteristics - characteristics properties of this spliterator's source or elements.
      Gibt zurück:
      a split iterator of a Stream compatible type
    • createArraySplititerator

      public static IntSplititerator createArraySplititerator(int[] array, int characteristics)
      Creates a Type Specific SplitIterator to reduce boxing/unboxing
      Parameter:
      array - that should be wrapped into a split iterator
      characteristics - characteristics properties of this spliterator's source or elements.
      Gibt zurück:
      a Type Specific SplitIterator
    • createArraySplititerator

      public static IntSplititerator createArraySplititerator(int[] array, int size, int characteristics)
      Creates a Type Specific SplitIterator to reduce boxing/unboxing
      Parameter:
      array - that should be wrapped into a split iterator
      size - the maximum index within the array
      characteristics - 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 IntSplititerator createArraySplititerator(int[] 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 iterator
      offset - the starting index of the array
      size - the maximum index within the array
      characteristics - 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 IntSplititerator createSplititerator(IntCollection collection, int characteristics)
      Creates a Type Specific SplitIterator to reduce boxing/unboxing
      Parameter:
      collection - the collection that should be wrapped in a split iterator
      characteristics - characteristics properties of this spliterator's source or elements.
      Gibt zurück:
      a Type Specific SplitIterator
    • createUnknownSplititerator

      public static IntSplititerator createUnknownSplititerator(IntIterator iterator, int characteristics)
      Creates a Type Specific SplitIterator to reduce boxing/unboxing
      Parameter:
      iterator - the Iterator that should be wrapped in a split iterator
      characteristics - characteristics properties of this spliterator's source or elements.
      Gibt zurück:
      a Type Specific SplitIterator
    • createSizedSplititerator

      public static IntSplititerator createSizedSplititerator(IntIterator 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 iterator
      size - the amount of elements in the iterator
      characteristics - characteristics properties of this spliterator's source or elements.
      Gibt zurück:
      a Type Specific SplitIterator