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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanallSatisfy(LongPredicate predicate) Returns true if all of the elements in the LongIterable return true for the specified predicate, otherwise returns false.booleananySatisfy(LongPredicate predicate) Returns true if any of the elements in the LongIterable 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.chunk(int size) Partitions elements in fixed size chunks.<V> MutableBag<V>collect(LongToObjectFunction<? extends V> function) Returns a new collection with the results of applying the specified function on each element of the source collection.booleancontains(long value) Returns true if the value is contained in the LongIterable, and false if it is not.booleancontainsAll(LongIterable source) Returns true if all of the values specified in the source LongIterable are contained in the LongIterable, and false if they are not.booleancontainsValue(long value) Returns whether or not this map contains the value.intcount(LongPredicate predicate) Returns a count of the number of elements in the LongIterable that return true for the specified predicate.longdetectIfNone(LongPredicate predicate, long value) voideach(LongProcedure procedure) A synonym for forEach.voidforEachValue(LongProcedure procedure) Iterates through each value in this map.booleanisEmpty()Returns true if this iterable has zero items.longmax()longmin()booleannotEmpty()The English equivalent of !this.isEmpty()reject(LongPredicate predicate) Returns a new LongIterable with all of the elements in the LongIterable that return false for the specified predicate.select(LongPredicate predicate) Returns a new LongIterable with all of the elements in the LongIterable that return true for the specified predicate.intsize()Returns the number of items in this iterable.longsum()long[]toArray()Converts the LongIterable to a primitive long array.long[]toArray(long[] target) Converts the LongIterable to a primitive long array.Methods inherited from class org.eclipse.collections.impl.primitive.AbstractLongIterableasLazy, average, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedList, toStringMethods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.collections.api.LongIterableasLazy, average, averageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, containsAll, containsAny, containsAny, containsNone, containsNone, flatCollect, forEach, injectInto, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, maxIfEmpty, median, medianIfEmpty, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, summaryStatistics, toBag, toList, toSet, toSortedArray, toSortedList, toSortedList, toSortedListBy, toSortedListByMethods inherited from interface org.eclipse.collections.api.map.primitive.LongValuesMaptap, valuesMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableLongValuesMapclear, longIteratorMethods inherited from interface org.eclipse.collections.api.PrimitiveIterableappendString, appendString, makeString, makeString, makeString, toString
- 
Constructor Details- 
AbstractMutableLongValuesMappublic AbstractMutableLongValuesMap()
 
- 
- 
Method Details- 
containspublic boolean contains(long value) Description copied from interface:LongIterableReturns true if the value is contained in the LongIterable, and false if it is not.- Specified by:
- containsin interface- LongIterable
 
- 
containsAllDescription copied from interface:LongIterableReturns true if all of the values specified in the source LongIterable are contained in the LongIterable, and false if they are not.- Specified by:
- containsAllin interface- LongIterable
 
- 
maxpublic long max()- Specified by:
- maxin interface- LongIterable
 
- 
minpublic long min()- Specified by:
- minin interface- LongIterable
 
- 
sizepublic int size()Description copied from interface:PrimitiveIterableReturns the number of items in this iterable.- Specified by:
- sizein interface- PrimitiveIterable
 
- 
isEmptypublic boolean isEmpty()Description copied from interface:PrimitiveIterableReturns true if this iterable has zero items.- Specified by:
- isEmptyin interface- PrimitiveIterable
 
- 
notEmptypublic boolean notEmpty()Description copied from interface:PrimitiveIterableThe English equivalent of !this.isEmpty()- Specified by:
- notEmptyin interface- PrimitiveIterable
 
- 
eachDescription copied from interface:LongIterableA synonym for forEach.- Specified by:
- eachin interface- LongIterable
- Since:
- 7.0.
 
- 
appendStringDescription 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 interface- PrimitiveIterable
 
- 
toArraypublic long[] toArray()Description copied from interface:LongIterableConverts the LongIterable to a primitive long array.- Specified by:
- toArrayin interface- LongIterable
 
- 
toArraypublic long[] toArray(long[] target) Description copied from interface:LongIterableConverts 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:
- toArrayin interface- LongIterable
 
- 
selectDescription copied from interface:LongIterableReturns a new LongIterable with all of the elements in the LongIterable that return true for the specified predicate.- Specified by:
- selectin interface- LongIterable
- Specified by:
- selectin interface- LongValuesMap
- Specified by:
- selectin interface- MutableLongValuesMap
 
- 
rejectDescription copied from interface:LongIterableReturns a new LongIterable with all of the elements in the LongIterable that return false for the specified predicate.- Specified by:
- rejectin interface- LongIterable
- Specified by:
- rejectin interface- LongValuesMap
- Specified by:
- rejectin interface- MutableLongValuesMap
 
- 
collectDescription copied from interface:LongIterableReturns 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 interface- LongIterable
- Specified by:
- collectin interface- LongValuesMap
- Specified by:
- collectin interface- MutableLongValuesMap
 
- 
detectIfNone- Specified by:
- detectIfNonein interface- LongIterable
 
- 
countDescription copied from interface:LongIterableReturns a count of the number of elements in the LongIterable that return true for the specified predicate.- Specified by:
- countin interface- LongIterable
 
- 
anySatisfyDescription copied from interface:LongIterableReturns true if any of the elements in the LongIterable return true for the specified predicate, otherwise returns false.- Specified by:
- anySatisfyin interface- LongIterable
 
- 
allSatisfyDescription copied from interface:LongIterableReturns true if all of the elements in the LongIterable return true for the specified predicate, otherwise returns false.- Specified by:
- allSatisfyin interface- LongIterable
 
- 
chunkDescription copied from interface:LongIterablePartitions elements in fixed size chunks.- Specified by:
- chunkin interface- LongIterable
- Parameters:
- size- the number of elements per chunk
- Returns:
- A RichIterablecontainingLongIterables of sizesize, except the last will be truncated if the elements don't divide evenly.
 
- 
sumpublic long sum()- Specified by:
- sumin interface- LongIterable
 
- 
containsValuepublic boolean containsValue(long value) Description copied from interface:LongValuesMapReturns whether or not this map contains the value.- Specified by:
- containsValuein interface- LongValuesMap
- Parameters:
- value- the value to test
- Returns:
- if this collection contains the value
 
- 
forEachValueDescription copied from interface:LongValuesMapIterates through each value in this map.- Specified by:
- forEachValuein interface- LongValuesMap
- Parameters:
- procedure- the procedure to invoke for each value in this map.
 
 
-