Klasse ObjectSplititerators

java.lang.Object
speiger.src.collections.objects.utils.ObjectSplititerators

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

    • ObjectSplititerators

      public ObjectSplititerators()
  • Methodendetails

    • createArraySplititerator

      public static <T> ObjectSplititerator<T> createArraySplititerator(T[] array, 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 iterator
      characteristics - 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 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 <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 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 <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 iterator
      characteristics - 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 iterator
      characteristics - 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 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