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 Summary
Constructors Constructor Description AbstractMutableByteValuesMap() -
Method Summary
Modifier and Type Method Description booleanallSatisfy(BytePredicate predicate)Returns true if all of the elements in the ByteIterable return true for the specified predicate, otherwise returns false.booleananySatisfy(BytePredicate predicate)Returns true if any of the elements in the ByteIterable return true for the specified predicate, otherwise returns false.voidappendString(Appendable appendable, String start, String separator, String end)Prints a string representation of this collection onto the givenAppendable.RichIterable<ByteIterable>chunk(int size)Partitions elements in fixed size chunks.<V> MutableBag<V>collect(ByteToObjectFunction<? extends V> function)Returns a new collection with the results of applying the specified function on each element of the source collection.booleancontains(byte value)Returns true if the value is contained in the ByteIterable, and false if it is not.booleancontainsAll(ByteIterable source)Returns true if the all of the values specified in the source ByteIterable are contained in the ByteIterable, and false if they are not.booleancontainsValue(byte value)Returns whether or not this map contains the value.intcount(BytePredicate predicate)Returns a count of the number of elements in the ByteIterable that return true for the specified predicate.bytedetectIfNone(BytePredicate predicate, byte value)voideach(ByteProcedure procedure)A synonym for forEach.voidforEach(ByteProcedure procedure)Applies the ByteProcedure to each element in the ByteIterable.voidforEachValue(ByteProcedure procedure)Iterates through each value in this map.booleanisEmpty()Returns true if this iterable has zero items.bytemax()bytemin()booleannoneSatisfy(BytePredicate predicate)Returns true if none of the elements in the ByteIterable return true for the specified predicate, otherwise returns false.booleannotEmpty()The English equivalent of !this.isEmpty()MutableByteBagreject(BytePredicate predicate)Returns a new ByteIterable with all of the elements in the ByteIterable that return false for the specified predicate.MutableByteBagselect(BytePredicate predicate)Returns a new ByteIterable with all of the elements in the ByteIterable that return true for the specified predicate.intsize()Returns the number of items in this iterable.longsum()byte[]toArray()Converts the ByteIterable to a primitive byte array.byte[]toArray(byte[] target)Converts the ByteIterable to a primitive byte array.Methods inherited from class org.eclipse.collections.impl.primitive.AbstractByteIterable
asLazy, average, containsAll, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedList, toStringMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.collections.api.ByteIterable
asLazy, average, averageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, containsAll, flatCollect, injectInto, maxIfEmpty, median, medianIfEmpty, minIfEmpty, reduce, reduceIfEmpty, reject, select, summaryStatistics, toBag, toList, toSet, toSortedArray, toSortedListMethods inherited from interface org.eclipse.collections.api.map.primitive.ByteValuesMap
tap, valuesMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableByteValuesMap
byteIterator, clearMethods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, makeString, makeString, makeString, toString
-
Constructor Details
-
AbstractMutableByteValuesMap
public AbstractMutableByteValuesMap()
-
-
Method Details
-
contains
public boolean contains(byte value)Description copied from interface:ByteIterableReturns true if the value is contained in the ByteIterable, and false if it is not.- Specified by:
containsin interfaceByteIterable
-
containsAll
Description copied from interface:ByteIterableReturns true if the all of the values specified in the source ByteIterable are contained in the ByteIterable, and false if they are not.- Specified by:
containsAllin interfaceByteIterable- Overrides:
containsAllin classAbstractByteIterable
-
max
public byte max()- Specified by:
maxin interfaceByteIterable
-
min
public byte min()- Specified by:
minin interfaceByteIterable
-
size
public int size()Description copied from interface:PrimitiveIterableReturns the number of items in this iterable.- Specified by:
sizein interfacePrimitiveIterable
-
isEmpty
public boolean isEmpty()Description copied from interface:PrimitiveIterableReturns true if this iterable has zero items.- Specified by:
isEmptyin interfacePrimitiveIterable
-
notEmpty
public boolean notEmpty()Description copied from interface:PrimitiveIterableThe English equivalent of !this.isEmpty()- Specified by:
notEmptyin interfacePrimitiveIterable
-
forEach
Description copied from interface:ByteIterableApplies the ByteProcedure to each element in the ByteIterable.- Specified by:
forEachin interfaceByteIterable
-
each
Description copied from interface:ByteIterableA synonym for forEach.- Specified by:
eachin interfaceByteIterable- Since:
- 7.0.
-
appendString
Description copied from interface:PrimitiveIterablePrints a string representation of this collection onto the givenAppendable. Prints the string returned byPrimitiveIterable.makeString(String, String, String).- Specified by:
appendStringin interfacePrimitiveIterable
-
toArray
public byte[] toArray()Description copied from interface:ByteIterableConverts the ByteIterable to a primitive byte array.- Specified by:
toArrayin interfaceByteIterable
-
toArray
public byte[] toArray(byte[] target)Description copied from interface:ByteIterableConverts 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:
toArrayin interfaceByteIterable
-
select
Description copied from interface:ByteIterableReturns a new ByteIterable with all of the elements in the ByteIterable that return true for the specified predicate.- Specified by:
selectin interfaceByteIterable- Specified by:
selectin interfaceByteValuesMap- Specified by:
selectin interfaceMutableByteValuesMap
-
reject
Description copied from interface:ByteIterableReturns a new ByteIterable with all of the elements in the ByteIterable that return false for the specified predicate.- Specified by:
rejectin interfaceByteIterable- Specified by:
rejectin interfaceByteValuesMap- Specified by:
rejectin interfaceMutableByteValuesMap
-
collect
Description copied from interface:ByteIterableReturns 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:
collectin interfaceByteIterable- Specified by:
collectin interfaceByteValuesMap- Specified by:
collectin interfaceMutableByteValuesMap
-
detectIfNone
- Specified by:
detectIfNonein interfaceByteIterable
-
count
Description copied from interface:ByteIterableReturns a count of the number of elements in the ByteIterable that return true for the specified predicate.- Specified by:
countin interfaceByteIterable
-
anySatisfy
Description copied from interface:ByteIterableReturns true if any of the elements in the ByteIterable return true for the specified predicate, otherwise returns false.- Specified by:
anySatisfyin interfaceByteIterable
-
allSatisfy
Description copied from interface:ByteIterableReturns true if all of the elements in the ByteIterable return true for the specified predicate, otherwise returns false.- Specified by:
allSatisfyin interfaceByteIterable
-
noneSatisfy
Description copied from interface:ByteIterableReturns true if none of the elements in the ByteIterable return true for the specified predicate, otherwise returns false.- Specified by:
noneSatisfyin interfaceByteIterable
-
chunk
Description copied from interface:ByteIterablePartitions elements in fixed size chunks.- Specified by:
chunkin interfaceByteIterable- Parameters:
size- the number of elements per chunk- Returns:
- A
RichIterablecontainingByteIterables of sizesize, except the last will be truncated if the elements don't divide evenly.
-
sum
public long sum()- Specified by:
sumin interfaceByteIterable
-
containsValue
public boolean containsValue(byte value)Description copied from interface:ByteValuesMapReturns whether or not this map contains the value.- Specified by:
containsValuein interfaceByteValuesMap- Parameters:
value- the value to test- Returns:
- if this collection contains the value
-
forEachValue
Description copied from interface:ByteValuesMapIterates through each value in this map.- Specified by:
forEachValuein interfaceByteValuesMap- Parameters:
procedure- the procedure to invoke for each value in this map.
-