public abstract class AbstractMutableIntValuesMap extends AbstractIntIterable implements com.gs.collections.api.map.primitive.MutableIntValuesMap
| Modifier and Type | Class and Description |
|---|---|
protected class |
AbstractMutableIntValuesMap.AbstractIntValuesCollection |
protected static class |
AbstractMutableIntValuesMap.SentinelValues |
| Constructor and Description |
|---|
AbstractMutableIntValuesMap() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addEmptyKeyValue(int value) |
protected void |
addRemovedKeyValue(int value) |
boolean |
allSatisfy(com.gs.collections.api.block.predicate.primitive.IntPredicate predicate) |
boolean |
anySatisfy(com.gs.collections.api.block.predicate.primitive.IntPredicate 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.IntToObjectFunction<? extends V> function) |
boolean |
contains(int value) |
boolean |
containsAll(com.gs.collections.api.IntIterable source) |
boolean |
containsValue(int value) |
int |
count(com.gs.collections.api.block.predicate.primitive.IntPredicate predicate) |
int |
detectIfNone(com.gs.collections.api.block.predicate.primitive.IntPredicate predicate,
int value) |
void |
each(com.gs.collections.api.block.procedure.primitive.IntProcedure procedure) |
void |
forEach(com.gs.collections.api.block.procedure.primitive.IntProcedure procedure) |
void |
forEachValue(com.gs.collections.api.block.procedure.primitive.IntProcedure procedure) |
protected abstract int |
getEmptyValue() |
protected abstract int |
getOccupiedWithData() |
protected abstract AbstractMutableIntValuesMap.SentinelValues |
getSentinelValues() |
protected abstract int |
getTableSize() |
protected abstract int |
getValueAtIndex(int index) |
boolean |
isEmpty()
Returns true if this iterable has zero items.
|
protected abstract boolean |
isNonSentinelAtIndex(int index) |
int |
max() |
int |
min() |
boolean |
noneSatisfy(com.gs.collections.api.block.predicate.primitive.IntPredicate predicate) |
boolean |
notEmpty()
The English equivalent of !this.isEmpty()
|
com.gs.collections.api.collection.primitive.MutableIntCollection |
reject(com.gs.collections.api.block.predicate.primitive.IntPredicate predicate) |
protected void |
removeEmptyKey() |
protected void |
removeRemovedKey() |
com.gs.collections.api.collection.primitive.MutableIntCollection |
select(com.gs.collections.api.block.predicate.primitive.IntPredicate predicate) |
protected abstract void |
setSentinelValuesNull() |
int |
size()
Returns the number of items in this iterable.
|
long |
sum() |
int[] |
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, intIteratorprotected abstract int getOccupiedWithData()
protected abstract AbstractMutableIntValuesMap.SentinelValues getSentinelValues()
protected abstract void setSentinelValuesNull()
protected abstract int getEmptyValue()
protected abstract int getValueAtIndex(int index)
protected abstract int getTableSize()
protected abstract boolean isNonSentinelAtIndex(int index)
protected void addEmptyKeyValue(int value)
protected void removeEmptyKey()
protected void addRemovedKeyValue(int value)
protected void removeRemovedKey()
public boolean contains(int value)
contains in interface com.gs.collections.api.IntIterablepublic boolean containsAll(com.gs.collections.api.IntIterable source)
containsAll in interface com.gs.collections.api.IntIterablecontainsAll in class AbstractIntIterablepublic int max()
max in interface com.gs.collections.api.IntIterablepublic int min()
min in interface com.gs.collections.api.IntIterablepublic 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 AbstractIntIterablepublic boolean notEmpty()
com.gs.collections.api.PrimitiveIterablenotEmpty in interface com.gs.collections.api.PrimitiveIterablenotEmpty in class AbstractIntIterablepublic void forEach(com.gs.collections.api.block.procedure.primitive.IntProcedure procedure)
forEach in interface com.gs.collections.api.IntIterablepublic void each(com.gs.collections.api.block.procedure.primitive.IntProcedure procedure)
each in interface com.gs.collections.api.IntIterablepublic 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 int[] toArray()
toArray in interface com.gs.collections.api.IntIterablepublic com.gs.collections.api.collection.primitive.MutableIntCollection select(com.gs.collections.api.block.predicate.primitive.IntPredicate predicate)
select in interface com.gs.collections.api.IntIterableselect in interface com.gs.collections.api.map.primitive.MutableIntValuesMappublic com.gs.collections.api.collection.primitive.MutableIntCollection reject(com.gs.collections.api.block.predicate.primitive.IntPredicate predicate)
reject in interface com.gs.collections.api.IntIterablereject in interface com.gs.collections.api.map.primitive.MutableIntValuesMappublic <V> com.gs.collections.api.collection.MutableCollection<V> collect(com.gs.collections.api.block.function.primitive.IntToObjectFunction<? extends V> function)
collect in interface com.gs.collections.api.IntIterablecollect in interface com.gs.collections.api.map.primitive.MutableIntValuesMappublic int detectIfNone(com.gs.collections.api.block.predicate.primitive.IntPredicate predicate,
int value)
detectIfNone in interface com.gs.collections.api.IntIterablepublic int count(com.gs.collections.api.block.predicate.primitive.IntPredicate predicate)
count in interface com.gs.collections.api.IntIterablepublic boolean anySatisfy(com.gs.collections.api.block.predicate.primitive.IntPredicate predicate)
anySatisfy in interface com.gs.collections.api.IntIterablepublic boolean allSatisfy(com.gs.collections.api.block.predicate.primitive.IntPredicate predicate)
allSatisfy in interface com.gs.collections.api.IntIterablepublic boolean noneSatisfy(com.gs.collections.api.block.predicate.primitive.IntPredicate predicate)
noneSatisfy in interface com.gs.collections.api.IntIterablepublic long sum()
sum in interface com.gs.collections.api.IntIterablepublic boolean containsValue(int value)
containsValue in interface com.gs.collections.api.map.primitive.IntValuesMappublic void forEachValue(com.gs.collections.api.block.procedure.primitive.IntProcedure procedure)
forEachValue in interface com.gs.collections.api.map.primitive.IntValuesMap