Class AbstractMutableLongValuesMap

java.lang.Object
org.eclipse.collections.impl.primitive.AbstractLongIterable
org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableLongValuesMap
All Implemented Interfaces:
LongIterable, LongValuesMap, MutableLongValuesMap, PrimitiveIterable
Direct Known Subclasses:
ByteLongHashMap, CharLongHashMap, DoubleLongHashMap, FloatLongHashMap, IntLongHashMap, LongLongHashMap, ShortLongHashMap

public abstract class AbstractMutableLongValuesMap extends AbstractLongIterable implements MutableLongValuesMap
This file was automatically generated from template file abstractMutablePrimitiveValuesMap.stg.
Since:
6.0.
  • Constructor Details

    • AbstractMutableLongValuesMap

      public AbstractMutableLongValuesMap()
  • Method Details

    • contains

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

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

      public long max()
      Specified by:
      max in interface LongIterable
    • min

      public long min()
      Specified by:
      min in interface LongIterable
    • 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
    • each

      public void each(LongProcedure procedure)
      Description copied from interface: LongIterable
      A synonym for forEach.
      Specified by:
      each in interface LongIterable
      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 long[] toArray()
      Description copied from interface: LongIterable
      Converts the LongIterable to a primitive long array.
      Specified by:
      toArray in interface LongIterable
    • toArray

      public long[] toArray(long[] target)
      Description copied from interface: LongIterable
      Converts the LongIterable to a primitive long 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 LongIterable
    • select

      public MutableLongBag select(LongPredicate predicate)
      Description copied from interface: LongIterable
      Returns a new LongIterable with all of the elements in the LongIterable that return true for the specified predicate.
      Specified by:
      select in interface LongIterable
      Specified by:
      select in interface LongValuesMap
      Specified by:
      select in interface MutableLongValuesMap
    • reject

      public MutableLongBag reject(LongPredicate predicate)
      Description copied from interface: LongIterable
      Returns a new LongIterable with all of the elements in the LongIterable that return false for the specified predicate.
      Specified by:
      reject in interface LongIterable
      Specified by:
      reject in interface LongValuesMap
      Specified by:
      reject in interface MutableLongValuesMap
    • collect

      public <V> MutableBag<V> collect(LongToObjectFunction<? extends V> function)
      Description copied from interface: LongIterable
      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 LongIterable
      Specified by:
      collect in interface LongValuesMap
      Specified by:
      collect in interface MutableLongValuesMap
    • detectIfNone

      public long detectIfNone(LongPredicate predicate, long value)
      Specified by:
      detectIfNone in interface LongIterable
    • count

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

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

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

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

      public long sum()
      Specified by:
      sum in interface LongIterable
    • containsValue

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

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