Class AbstractMutableByteValuesMap

java.lang.Object
org.eclipse.collections.impl.primitive.AbstractByteIterable
org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableByteValuesMap
All Implemented Interfaces:
ByteIterable, ByteValuesMap, MutableByteValuesMap, PrimitiveIterable
Direct Known Subclasses:
ByteByteHashMap, CharByteHashMap, DoubleByteHashMap, FloatByteHashMap, IntByteHashMap, LongByteHashMap, ShortByteHashMap

public abstract class AbstractMutableByteValuesMap extends AbstractByteIterable implements MutableByteValuesMap
This file was automatically generated from template file abstractMutablePrimitiveValuesMap.stg.
Since:
6.0.
  • Constructor Details

    • AbstractMutableByteValuesMap

      public AbstractMutableByteValuesMap()
  • Method Details

    • contains

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

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

      public byte max()
      Specified by:
      max in interface ByteIterable
    • min

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

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

      public MutableByteBag select(BytePredicate predicate)
      Description copied from interface: ByteIterable
      Returns a new ByteIterable with all of the elements in the ByteIterable that return true for the specified predicate.
      Specified by:
      select in interface ByteIterable
      Specified by:
      select in interface ByteValuesMap
      Specified by:
      select in interface MutableByteValuesMap
    • reject

      public MutableByteBag reject(BytePredicate predicate)
      Description copied from interface: ByteIterable
      Returns a new ByteIterable with all of the elements in the ByteIterable that return false for the specified predicate.
      Specified by:
      reject in interface ByteIterable
      Specified by:
      reject in interface ByteValuesMap
      Specified by:
      reject in interface MutableByteValuesMap
    • collect

      public <V> MutableBag<V> collect(ByteToObjectFunction<? extends V> function)
      Description copied from interface: ByteIterable
      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 ByteIterable
      Specified by:
      collect in interface ByteValuesMap
      Specified by:
      collect in interface MutableByteValuesMap
    • detectIfNone

      public byte detectIfNone(BytePredicate predicate, byte value)
      Specified by:
      detectIfNone in interface ByteIterable
    • count

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

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

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

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

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

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