Class AbstractMutableCharValuesMap

java.lang.Object
org.eclipse.collections.impl.primitive.AbstractCharIterable
org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableCharValuesMap
All Implemented Interfaces:
CharIterable, CharValuesMap, MutableCharValuesMap, PrimitiveIterable
Direct Known Subclasses:
ByteCharHashMap, CharCharHashMap, DoubleCharHashMap, FloatCharHashMap, IntCharHashMap, LongCharHashMap, ShortCharHashMap

public abstract class AbstractMutableCharValuesMap extends AbstractCharIterable implements MutableCharValuesMap
This file was automatically generated from template file abstractMutablePrimitiveValuesMap.stg.
Since:
6.0.
  • Constructor Details

    • AbstractMutableCharValuesMap

      public AbstractMutableCharValuesMap()
  • Method Details

    • contains

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

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

      public char max()
      Specified by:
      max in interface CharIterable
    • min

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

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

      public MutableCharBag select(CharPredicate predicate)
      Description copied from interface: CharIterable
      Returns a new CharIterable with all of the elements in the CharIterable that return true for the specified predicate.
      Specified by:
      select in interface CharIterable
      Specified by:
      select in interface CharValuesMap
      Specified by:
      select in interface MutableCharValuesMap
    • reject

      public MutableCharBag reject(CharPredicate predicate)
      Description copied from interface: CharIterable
      Returns a new CharIterable with all of the elements in the CharIterable that return false for the specified predicate.
      Specified by:
      reject in interface CharIterable
      Specified by:
      reject in interface CharValuesMap
      Specified by:
      reject in interface MutableCharValuesMap
    • collect

      public <V> MutableBag<V> collect(CharToObjectFunction<? extends V> function)
      Description copied from interface: CharIterable
      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 CharIterable
      Specified by:
      collect in interface CharValuesMap
      Specified by:
      collect in interface MutableCharValuesMap
    • detectIfNone

      public char detectIfNone(CharPredicate predicate, char value)
      Specified by:
      detectIfNone in interface CharIterable
    • count

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

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

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

      public RichIterable<CharIterable> chunk(int size)
      Description copied from interface: CharIterable
      Partitions elements in fixed size chunks.
      Specified by:
      chunk in interface CharIterable
      Parameters:
      size - the number of elements per chunk
      Returns:
      A RichIterable containing CharIterables 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 CharIterable
    • containsValue

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

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