public abstract class AbstractMutableLongValuesMap extends AbstractLongIterable implements com.gs.collections.api.map.primitive.MutableLongValuesMap
| Modifier and Type | Class and Description |
|---|---|
protected class |
AbstractMutableLongValuesMap.AbstractLongValuesCollection |
protected static class |
AbstractMutableLongValuesMap.SentinelValues |
| Constructor and Description |
|---|
AbstractMutableLongValuesMap() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addEmptyKeyValue(long value) |
protected void |
addRemovedKeyValue(long value) |
boolean |
allSatisfy(com.gs.collections.api.block.predicate.primitive.LongPredicate predicate) |
boolean |
anySatisfy(com.gs.collections.api.block.predicate.primitive.LongPredicate predicate) |
void |
appendString(java.lang.Appendable appendable,
java.lang.String start,
java.lang.String separator,
java.lang.String end)
Prints a string representation of this collection onto the given
Appendable. |
<V> com.gs.collections.api.collection.MutableCollection<V> |
collect(com.gs.collections.api.block.function.primitive.LongToObjectFunction<? extends V> function) |
boolean |
contains(long value) |
boolean |
containsAll(com.gs.collections.api.LongIterable source) |
boolean |
containsValue(long value) |
int |
count(com.gs.collections.api.block.predicate.primitive.LongPredicate predicate) |
long |
detectIfNone(com.gs.collections.api.block.predicate.primitive.LongPredicate predicate,
long value) |
void |
each(com.gs.collections.api.block.procedure.primitive.LongProcedure procedure) |
void |
forEach(com.gs.collections.api.block.procedure.primitive.LongProcedure procedure) |
void |
forEachValue(com.gs.collections.api.block.procedure.primitive.LongProcedure procedure) |
protected abstract long |
getEmptyValue() |
protected abstract int |
getOccupiedWithData() |
protected abstract AbstractMutableLongValuesMap.SentinelValues |
getSentinelValues() |
protected abstract int |
getTableSize() |
protected abstract long |
getValueAtIndex(int index) |
boolean |
isEmpty()
Returns true if this iterable has zero items.
|
protected abstract boolean |
isNonSentinelAtIndex(int index) |
long |
max() |
long |
min() |
boolean |
noneSatisfy(com.gs.collections.api.block.predicate.primitive.LongPredicate predicate) |
boolean |
notEmpty()
The English equivalent of !this.isEmpty()
|
com.gs.collections.api.collection.primitive.MutableLongCollection |
reject(com.gs.collections.api.block.predicate.primitive.LongPredicate predicate) |
protected void |
removeEmptyKey() |
protected void |
removeRemovedKey() |
com.gs.collections.api.collection.primitive.MutableLongCollection |
select(com.gs.collections.api.block.predicate.primitive.LongPredicate predicate) |
protected abstract void |
setSentinelValuesNull() |
int |
size()
Returns the number of items in this iterable.
|
long |
sum() |
long[] |
toArray() |
appendString, appendString, asLazy, average, containsAll, makeString, makeString, makeString, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedList, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclear, longIteratorprotected abstract int getOccupiedWithData()
protected abstract AbstractMutableLongValuesMap.SentinelValues getSentinelValues()
protected abstract void setSentinelValuesNull()
protected abstract long getEmptyValue()
protected abstract long getValueAtIndex(int index)
protected abstract int getTableSize()
protected abstract boolean isNonSentinelAtIndex(int index)
protected void addEmptyKeyValue(long value)
protected void removeEmptyKey()
protected void addRemovedKeyValue(long value)
protected void removeRemovedKey()
public boolean contains(long value)
contains in interface com.gs.collections.api.LongIterablepublic boolean containsAll(com.gs.collections.api.LongIterable source)
containsAll in interface com.gs.collections.api.LongIterablecontainsAll in class AbstractLongIterablepublic long max()
max in interface com.gs.collections.api.LongIterablepublic long min()
min in interface com.gs.collections.api.LongIterablepublic int size()
com.gs.collections.api.PrimitiveIterablesize in interface com.gs.collections.api.PrimitiveIterablepublic boolean isEmpty()
com.gs.collections.api.PrimitiveIterableisEmpty in interface com.gs.collections.api.PrimitiveIterableisEmpty in class AbstractLongIterablepublic boolean notEmpty()
com.gs.collections.api.PrimitiveIterablenotEmpty in interface com.gs.collections.api.PrimitiveIterablenotEmpty in class AbstractLongIterablepublic void forEach(com.gs.collections.api.block.procedure.primitive.LongProcedure procedure)
forEach in interface com.gs.collections.api.LongIterablepublic void each(com.gs.collections.api.block.procedure.primitive.LongProcedure procedure)
each in interface com.gs.collections.api.LongIterablepublic void appendString(java.lang.Appendable appendable,
java.lang.String start,
java.lang.String separator,
java.lang.String end)
com.gs.collections.api.PrimitiveIterableAppendable. Prints the string returned
by PrimitiveIterable.makeString(String, String, String).appendString in interface com.gs.collections.api.PrimitiveIterablepublic long[] toArray()
toArray in interface com.gs.collections.api.LongIterablepublic com.gs.collections.api.collection.primitive.MutableLongCollection select(com.gs.collections.api.block.predicate.primitive.LongPredicate predicate)
select in interface com.gs.collections.api.LongIterableselect in interface com.gs.collections.api.map.primitive.MutableLongValuesMappublic com.gs.collections.api.collection.primitive.MutableLongCollection reject(com.gs.collections.api.block.predicate.primitive.LongPredicate predicate)
reject in interface com.gs.collections.api.LongIterablereject in interface com.gs.collections.api.map.primitive.MutableLongValuesMappublic <V> com.gs.collections.api.collection.MutableCollection<V> collect(com.gs.collections.api.block.function.primitive.LongToObjectFunction<? extends V> function)
collect in interface com.gs.collections.api.LongIterablecollect in interface com.gs.collections.api.map.primitive.MutableLongValuesMappublic long detectIfNone(com.gs.collections.api.block.predicate.primitive.LongPredicate predicate,
long value)
detectIfNone in interface com.gs.collections.api.LongIterablepublic int count(com.gs.collections.api.block.predicate.primitive.LongPredicate predicate)
count in interface com.gs.collections.api.LongIterablepublic boolean anySatisfy(com.gs.collections.api.block.predicate.primitive.LongPredicate predicate)
anySatisfy in interface com.gs.collections.api.LongIterablepublic boolean allSatisfy(com.gs.collections.api.block.predicate.primitive.LongPredicate predicate)
allSatisfy in interface com.gs.collections.api.LongIterablepublic boolean noneSatisfy(com.gs.collections.api.block.predicate.primitive.LongPredicate predicate)
noneSatisfy in interface com.gs.collections.api.LongIterablepublic long sum()
sum in interface com.gs.collections.api.LongIterablepublic boolean containsValue(long value)
containsValue in interface com.gs.collections.api.map.primitive.LongValuesMappublic void forEachValue(com.gs.collections.api.block.procedure.primitive.LongProcedure procedure)
forEachValue in interface com.gs.collections.api.map.primitive.LongValuesMap