public abstract class AbstractMutableShortValuesMap extends AbstractShortIterable implements com.gs.collections.api.map.primitive.MutableShortValuesMap
| Modifier and Type | Class and Description |
|---|---|
protected class |
AbstractMutableShortValuesMap.AbstractShortValuesCollection |
protected static class |
AbstractMutableShortValuesMap.SentinelValues |
| Constructor and Description |
|---|
AbstractMutableShortValuesMap() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addEmptyKeyValue(short value) |
protected void |
addRemovedKeyValue(short value) |
boolean |
allSatisfy(com.gs.collections.api.block.predicate.primitive.ShortPredicate predicate) |
boolean |
anySatisfy(com.gs.collections.api.block.predicate.primitive.ShortPredicate 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.ShortToObjectFunction<? extends V> function) |
boolean |
contains(short value) |
boolean |
containsAll(com.gs.collections.api.ShortIterable source) |
boolean |
containsValue(short value) |
int |
count(com.gs.collections.api.block.predicate.primitive.ShortPredicate predicate) |
short |
detectIfNone(com.gs.collections.api.block.predicate.primitive.ShortPredicate predicate,
short value) |
void |
each(com.gs.collections.api.block.procedure.primitive.ShortProcedure procedure) |
void |
forEach(com.gs.collections.api.block.procedure.primitive.ShortProcedure procedure) |
void |
forEachValue(com.gs.collections.api.block.procedure.primitive.ShortProcedure procedure) |
protected abstract short |
getEmptyValue() |
protected abstract int |
getOccupiedWithData() |
protected abstract AbstractMutableShortValuesMap.SentinelValues |
getSentinelValues() |
protected abstract int |
getTableSize() |
protected abstract short |
getValueAtIndex(int index) |
boolean |
isEmpty()
Returns true if this iterable has zero items.
|
protected abstract boolean |
isNonSentinelAtIndex(int index) |
short |
max() |
short |
min() |
boolean |
noneSatisfy(com.gs.collections.api.block.predicate.primitive.ShortPredicate predicate) |
boolean |
notEmpty()
The English equivalent of !this.isEmpty()
|
com.gs.collections.api.collection.primitive.MutableShortCollection |
reject(com.gs.collections.api.block.predicate.primitive.ShortPredicate predicate) |
protected void |
removeEmptyKey() |
protected void |
removeRemovedKey() |
com.gs.collections.api.collection.primitive.MutableShortCollection |
select(com.gs.collections.api.block.predicate.primitive.ShortPredicate predicate) |
protected abstract void |
setSentinelValuesNull() |
int |
size()
Returns the number of items in this iterable.
|
long |
sum() |
short[] |
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, shortIteratorprotected abstract int getOccupiedWithData()
protected abstract AbstractMutableShortValuesMap.SentinelValues getSentinelValues()
protected abstract void setSentinelValuesNull()
protected abstract short getEmptyValue()
protected abstract short getValueAtIndex(int index)
protected abstract int getTableSize()
protected abstract boolean isNonSentinelAtIndex(int index)
protected void addEmptyKeyValue(short value)
protected void removeEmptyKey()
protected void addRemovedKeyValue(short value)
protected void removeRemovedKey()
public boolean contains(short value)
contains in interface com.gs.collections.api.ShortIterablepublic boolean containsAll(com.gs.collections.api.ShortIterable source)
containsAll in interface com.gs.collections.api.ShortIterablecontainsAll in class AbstractShortIterablepublic short max()
max in interface com.gs.collections.api.ShortIterablepublic short min()
min in interface com.gs.collections.api.ShortIterablepublic 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 AbstractShortIterablepublic boolean notEmpty()
com.gs.collections.api.PrimitiveIterablenotEmpty in interface com.gs.collections.api.PrimitiveIterablenotEmpty in class AbstractShortIterablepublic void forEach(com.gs.collections.api.block.procedure.primitive.ShortProcedure procedure)
forEach in interface com.gs.collections.api.ShortIterablepublic void each(com.gs.collections.api.block.procedure.primitive.ShortProcedure procedure)
each in interface com.gs.collections.api.ShortIterablepublic 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 short[] toArray()
toArray in interface com.gs.collections.api.ShortIterablepublic com.gs.collections.api.collection.primitive.MutableShortCollection select(com.gs.collections.api.block.predicate.primitive.ShortPredicate predicate)
select in interface com.gs.collections.api.map.primitive.MutableShortValuesMapselect in interface com.gs.collections.api.ShortIterablepublic com.gs.collections.api.collection.primitive.MutableShortCollection reject(com.gs.collections.api.block.predicate.primitive.ShortPredicate predicate)
reject in interface com.gs.collections.api.map.primitive.MutableShortValuesMapreject in interface com.gs.collections.api.ShortIterablepublic <V> com.gs.collections.api.collection.MutableCollection<V> collect(com.gs.collections.api.block.function.primitive.ShortToObjectFunction<? extends V> function)
collect in interface com.gs.collections.api.map.primitive.MutableShortValuesMapcollect in interface com.gs.collections.api.ShortIterablepublic short detectIfNone(com.gs.collections.api.block.predicate.primitive.ShortPredicate predicate,
short value)
detectIfNone in interface com.gs.collections.api.ShortIterablepublic int count(com.gs.collections.api.block.predicate.primitive.ShortPredicate predicate)
count in interface com.gs.collections.api.ShortIterablepublic boolean anySatisfy(com.gs.collections.api.block.predicate.primitive.ShortPredicate predicate)
anySatisfy in interface com.gs.collections.api.ShortIterablepublic boolean allSatisfy(com.gs.collections.api.block.predicate.primitive.ShortPredicate predicate)
allSatisfy in interface com.gs.collections.api.ShortIterablepublic boolean noneSatisfy(com.gs.collections.api.block.predicate.primitive.ShortPredicate predicate)
noneSatisfy in interface com.gs.collections.api.ShortIterablepublic long sum()
sum in interface com.gs.collections.api.ShortIterablepublic boolean containsValue(short value)
containsValue in interface com.gs.collections.api.map.primitive.ShortValuesMappublic void forEachValue(com.gs.collections.api.block.procedure.primitive.ShortProcedure procedure)
forEachValue in interface com.gs.collections.api.map.primitive.ShortValuesMap