Schnittstelle FloatCollection

Alle Superschnittstellen:
Collection<Float>, FloatIterable, ISizeProvider, Iterable<Float>
Alle bekannten Unterschnittstellen:
FloatList, FloatNavigableSet, FloatOrderedSet, FloatSet, FloatSortedSet
Alle bekannten Implementierungsklassen:
AbstractFloatCollection, AbstractFloatList, AbstractFloatSet, CopyOnWriteFloatArrayList, FloatArrayList, FloatArraySet, FloatAVLTreeSet, FloatCollections.EmptyCollection, FloatCollections.SynchronizedCollection, FloatCollections.UnmodifiableCollection, FloatLinkedList, FloatLinkedOpenCustomHashSet, FloatLinkedOpenHashSet, FloatOpenCustomHashSet, FloatOpenHashSet, FloatRBTreeSet, FloatSets.UnmodifiableSet, ImmutableFloatList, ImmutableFloatOpenHashSet

public interface FloatCollection extends Collection<Float>, FloatIterable, ISizeProvider
A Type-Specific Collection that reduces (un)boxing
  • Methodendetails

    • add

      boolean add(float o)
      A Type-Specific add function to reduce (un)boxing
      Parameter:
      o - the element that should be added
      Gibt zurück:
      true if the element was added to the collection
    • addAll

      boolean addAll(FloatCollection c)
      A Type-Specific addAll function to reduce (un)boxing
      Parameter:
      c - the collection of elements that should be added
      Gibt zurück:
      true if elements were added into the collection
    • addAll

      default boolean addAll(float... e)
      A Type-Specific Array based addAll method to reduce the amount of Wrapping
      Parameter:
      e - the elements that should be added
      Gibt zurück:
      if the collection was modified
    • addAll

      default boolean addAll(float[] e, int length)
      A Type-Specific Array based addAll method to reduce the amount of Wrapping
      Parameter:
      e - the elements that should be added
      length - how many elements of the array should be added
      Gibt zurück:
      if the collection was modified
    • addAll

      default boolean addAll(float[] e, int offset, int length)
      A Type-Specific Array based addAll method to reduce the amount of Wrapping
      Parameter:
      e - the elements that should be added
      offset - where to start within the array
      length - how many elements of the array should be added
      Gibt zurück:
      if the collection was modified
    • contains

      boolean contains(float o)
      A Type-Specific contains function to reduce (un)boxing
      Parameter:
      o - the element that is checked for
      Gibt zurück:
      true if the element is found in the collection
    • containsAll

      boolean containsAll(FloatCollection c)
      A Type-Specific containsAll function to reduce (un)boxing
      Parameter:
      c - the collection of elements that should be tested for
      Gibt zurück:
      true if all the element is found in the collection
    • containsAny

      boolean containsAny(FloatCollection c)
      A Type-Specific containsAny function to reduce (un)boxing
      Parameter:
      c - the collection of elements that should be tested for
      Gibt zurück:
      true if any element was found
    • containsAny

      @Deprecated boolean containsAny(Collection<?> c)
      Veraltet.
      Returns true if any element of the Collection is found in the provided collection. A Small Optimization function to find out of any element is present when comparing collections and not all of them.
      Parameter:
      c - the collection of elements that should be tested for
      Gibt zurück:
      true if any element was found.
    • remFloat

      boolean remFloat(float o)
      A Type-Specific remove function that reduces (un)boxing.
      Parameter:
      o - the element that should be removed
      Gibt zurück:
      true if the element was removed
      Siehe auch:
    • removeAll

      boolean removeAll(FloatCollection c)
      A Type-Specific removeAll function that reduces (un)boxing.
      Parameter:
      c - the collection of elements that should be removed
      Gibt zurück:
      true if any element was removed
      Siehe auch:
    • removeAll

      boolean removeAll(FloatCollection c, FloatConsumer r)
      A Type-Specific removeAll function that reduces (un)boxing. It also notifies the remover of which exact element is going to be removed.
      Parameter:
      c - the collection of elements that should be removed
      r - elements that got removed
      Gibt zurück:
      true if any element was removed
      Siehe auch:
    • retainAll

      boolean retainAll(FloatCollection c)
      A Type-Specific retainAll function that reduces (un)boxing.
      Parameter:
      c - the collection of elements that should be kept
      Gibt zurück:
      true if any element was removed
      Siehe auch:
    • retainAll

      boolean retainAll(FloatCollection c, FloatConsumer r)
      A Type-Specific retainAll function that reduces (un)boxing. It also notifies the remover of which exact element is going to be removed.
      Parameter:
      c - the collection of elements that should be kept
      r - elements that got removed
      Gibt zurück:
      true if any element was removed
      Siehe auch:
    • pour

      default <E extends FloatCollection> E pour(E collection)
      A Helper function to reduce the usage of Streams and allows to collect all elements
      Angegeben von:
      pour in Schnittstelle FloatIterable
      Typparameter:
      E - the collection type
      Parameter:
      collection - that the elements should be inserted to
      Gibt zurück:
      the input with the desired elements
    • copy

      A Function that does a shallow clone of the Collection itself. This function is more optimized then a copy constructor since the Collection does not have to be unsorted/resorted. It can be compared to Cloneable but with less exception risk
      Gibt zurück:
      a Shallow Copy of the collection
      Note:
      Wrappers and view collections will not support this feature
    • toFloatArray

      float[] toFloatArray()
      A Type-Specific toArray function that delegates to toFloatArray(float[]) with a newly created array.
      Angegeben von:
      toFloatArray in Schnittstelle FloatIterable
      Gibt zurück:
      an array containing all of the elements in this collection
      Siehe auch:
    • toFloatArray

      float[] toFloatArray(float[] a)
      A Type-Specific toArray function that reduces (un)boxing.
      Parameter:
      a - array that the elements should be injected to. If null or to small a new array with the right size is created
      Gibt zurück:
      an array containing all of the elements in this collection
      Siehe auch:
    • removeIf

      @Deprecated default boolean removeIf(Predicate<? super Float> filter)
      Veraltet.
      Please use the corresponding type-specific function instead.

      This default implementation delegates to the corresponding type-specific function.

      Angegeben von:
      removeIf in Schnittstelle Collection<Float>
    • remIf

      default boolean remIf(DoublePredicate filter)
      A Type-Specific removeIf function to reduce (un)boxing.

      Removes elements that were selected by the filter

      Parameter:
      filter - Filters the elements that should be removed
      Gibt zurück:
      true if the collection was modified
      Löst aus:
      NullPointerException - if filter is null
      Siehe auch:
    • add

      @Deprecated default boolean add(Float o)
      Veraltet.
      Please use the corresponding type-specific function instead.

      This default implementation delegates to the corresponding type-specific function.

      Angegeben von:
      add in Schnittstelle Collection<Float>
    • contains

      @Deprecated default boolean contains(Object o)
      Veraltet.
      Please use the corresponding type-specific function instead.

      This default implementation delegates to the corresponding type-specific function.

      Angegeben von:
      contains in Schnittstelle Collection<Float>
    • remove

      @Deprecated default boolean remove(Object o)
      Veraltet.
      Please use the corresponding type-specific function instead.

      This default implementation delegates to the corresponding type-specific function.

      Angegeben von:
      remove in Schnittstelle Collection<Float>
    • iterator

      FloatIterator iterator()
      Returns a Type-Specific Iterator to reduce (un)boxing
      Angegeben von:
      iterator in Schnittstelle Collection<Float>
      Angegeben von:
      iterator in Schnittstelle FloatIterable
      Angegeben von:
      iterator in Schnittstelle Iterable<Float>
      Gibt zurück:
      a iterator of the collection
      Siehe auch:
    • synchronize

      default FloatCollection synchronize()
      Creates a Wrapped Collection that is Synchronized
      Gibt zurück:
      a new Collection that is synchronized
      Siehe auch:
    • synchronize

      default FloatCollection synchronize(Object mutex)
      Creates a Wrapped Collection that is Synchronized
      Parameter:
      mutex - is the controller of the synchronization block
      Gibt zurück:
      a new Collection Wrapper that is synchronized
      Siehe auch:
    • unmodifiable

      default FloatCollection unmodifiable()
      Creates a Wrapped Collection that is unmodifiable
      Gibt zurück:
      a new Collection Wrapper that is unmodifiable
      Siehe auch:
    • primitiveStream

      default DoubleStream primitiveStream()
      Returns a Java-Type-Specific Stream to reduce boxing/unboxing.
      Gibt zurück:
      a Stream of the closest java type
    • parallelPrimitiveStream

      default DoubleStream parallelPrimitiveStream()
      Returns a Java-Type-Specific Parallel Stream to reduce boxing/unboxing.
      Gibt zurück:
      a Stream of the closest java type
    • spliterator

      default FloatSplititerator spliterator()
      A Type Specific Type Splititerator to reduce boxing/unboxing
      Angegeben von:
      spliterator in Schnittstelle Collection<Float>
      Angegeben von:
      spliterator in Schnittstelle FloatIterable
      Angegeben von:
      spliterator in Schnittstelle Iterable<Float>
      Gibt zurück:
      type specific splititerator