Class AbstractMutableFloatValuesMap

java.lang.Object
org.eclipse.collections.impl.primitive.AbstractFloatIterable
org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableFloatValuesMap
All Implemented Interfaces:
FloatIterable, FloatValuesMap, MutableFloatValuesMap, PrimitiveIterable
Direct Known Subclasses:
ByteFloatHashMap, CharFloatHashMap, DoubleFloatHashMap, FloatFloatHashMap, IntFloatHashMap, LongFloatHashMap, ShortFloatHashMap

public abstract class AbstractMutableFloatValuesMap extends AbstractFloatIterable implements MutableFloatValuesMap
This file was automatically generated from template file abstractMutablePrimitiveValuesMap.stg.
Since:
6.0.
  • Constructor Details

    • AbstractMutableFloatValuesMap

      public AbstractMutableFloatValuesMap()
  • Method Details

    • contains

      public boolean contains(float value)
      Description copied from interface: FloatIterable
      Returns true if the value is contained in the FloatIterable, and false if it is not.
      Specified by:
      contains in interface FloatIterable
    • containsAll

      public boolean containsAll(FloatIterable source)
      Description copied from interface: FloatIterable
      Returns true if all of the values specified in the source FloatIterable are contained in the FloatIterable, and false if they are not.
      Specified by:
      containsAll in interface FloatIterable
    • max

      public float max()
      Specified by:
      max in interface FloatIterable
    • min

      public float min()
      Specified by:
      min in interface FloatIterable
    • size

      public int size()
      Description copied from interface: PrimitiveIterable
      Returns the number of items in this iterable.
      Specified by:
      size in interface PrimitiveIterable
    • isEmpty

      public boolean isEmpty()
      Description copied from interface: PrimitiveIterable
      Returns true if this iterable has zero items.
      Specified by:
      isEmpty in interface PrimitiveIterable
    • notEmpty

      public boolean notEmpty()
      Description copied from interface: PrimitiveIterable
      The English equivalent of !this.isEmpty()
      Specified by:
      notEmpty in interface PrimitiveIterable
    • forEach

      public void forEach(FloatProcedure procedure)
      Description copied from interface: FloatIterable
      Applies the FloatProcedure to each element in the FloatIterable.
      Specified by:
      forEach in interface FloatIterable
    • each

      public void each(FloatProcedure procedure)
      Description copied from interface: FloatIterable
      A synonym for forEach.
      Specified by:
      each in interface FloatIterable
      Since:
      7.0.
    • appendString

      public void appendString(Appendable appendable, String start, String separator, String end)
      Description copied from interface: PrimitiveIterable
      Prints a string representation of this collection onto the given Appendable. Prints the string returned by PrimitiveIterable.makeString(String, String, String).
      Specified by:
      appendString in interface PrimitiveIterable
    • toArray

      public float[] toArray()
      Description copied from interface: FloatIterable
      Converts the FloatIterable to a primitive float array.
      Specified by:
      toArray in interface FloatIterable
    • toArray

      public float[] toArray(float[] target)
      Description copied from interface: FloatIterable
      Converts the FloatIterable to a primitive float array. If the collection fits into the provided array it is used to store its elements and is returned from the method, otherwise a new array of the appropriate size is allocated and returned. If the iterable is empty, the target array is returned unchanged.
      Specified by:
      toArray in interface FloatIterable
    • select

      public MutableFloatBag select(FloatPredicate predicate)
      Description copied from interface: FloatIterable
      Returns a new FloatIterable with all of the elements in the FloatIterable that return true for the specified predicate.
      Specified by:
      select in interface FloatIterable
      Specified by:
      select in interface FloatValuesMap
      Specified by:
      select in interface MutableFloatValuesMap
    • reject

      public MutableFloatBag reject(FloatPredicate predicate)
      Description copied from interface: FloatIterable
      Returns a new FloatIterable with all of the elements in the FloatIterable that return false for the specified predicate.
      Specified by:
      reject in interface FloatIterable
      Specified by:
      reject in interface FloatValuesMap
      Specified by:
      reject in interface MutableFloatValuesMap
    • collect

      public <V> MutableBag<V> collect(FloatToObjectFunction<? extends V> function)
      Description copied from interface: FloatIterable
      Returns a new collection with the results of applying the specified function on each element of the source collection. This method is also commonly called transform or map.
      Specified by:
      collect in interface FloatIterable
      Specified by:
      collect in interface FloatValuesMap
      Specified by:
      collect in interface MutableFloatValuesMap
    • detectIfNone

      public float detectIfNone(FloatPredicate predicate, float value)
      Specified by:
      detectIfNone in interface FloatIterable
    • count

      public int count(FloatPredicate predicate)
      Description copied from interface: FloatIterable
      Returns a count of the number of elements in the FloatIterable that return true for the specified predicate.
      Specified by:
      count in interface FloatIterable
    • anySatisfy

      public boolean anySatisfy(FloatPredicate predicate)
      Description copied from interface: FloatIterable
      Returns true if any of the elements in the FloatIterable return true for the specified predicate, otherwise returns false.
      Specified by:
      anySatisfy in interface FloatIterable
    • allSatisfy

      public boolean allSatisfy(FloatPredicate predicate)
      Description copied from interface: FloatIterable
      Returns true if all of the elements in the FloatIterable return true for the specified predicate, otherwise returns false.
      Specified by:
      allSatisfy in interface FloatIterable
    • noneSatisfy

      public boolean noneSatisfy(FloatPredicate predicate)
      Description copied from interface: FloatIterable
      Returns true if none of the elements in the FloatIterable return true for the specified predicate, otherwise returns false.
      Specified by:
      noneSatisfy in interface FloatIterable
    • chunk

      public RichIterable<FloatIterable> chunk(int size)
      Description copied from interface: FloatIterable
      Partitions elements in fixed size chunks.
      Specified by:
      chunk in interface FloatIterable
      Parameters:
      size - the number of elements per chunk
      Returns:
      A RichIterable containing FloatIterables of size size, except the last will be truncated if the elements don't divide evenly.
    • sum

      public double sum()
      Specified by:
      sum in interface FloatIterable
    • containsValue

      public boolean containsValue(float value)
      Description copied from interface: FloatValuesMap
      Returns whether or not this map contains the value.
      Specified by:
      containsValue in interface FloatValuesMap
      Parameters:
      value - the value to test
      Returns:
      if this collection contains the value
    • forEachValue

      public void forEachValue(FloatProcedure procedure)
      Description copied from interface: FloatValuesMap
      Iterates through each value in this map.
      Specified by:
      forEachValue in interface FloatValuesMap
      Parameters:
      procedure - the procedure to invoke for each value in this map.