public class ShortBooleanHashMap extends AbstractMutableBooleanValuesMap implements com.gs.collections.api.map.primitive.MutableShortBooleanMap, MutableShortKeysMap, java.io.Externalizable
AbstractMutableBooleanValuesMap.AbstractBooleanValuesCollection, AbstractMutableBooleanValuesMap.SentinelValues| Constructor and Description |
|---|
ShortBooleanHashMap() |
ShortBooleanHashMap(int initialCapacity) |
ShortBooleanHashMap(int initialCapacity,
float loadFactor)
Deprecated.
in 5.1.0.
|
ShortBooleanHashMap(com.gs.collections.api.map.primitive.ShortBooleanMap map) |
| Modifier and Type | Method and Description |
|---|---|
com.gs.collections.api.map.primitive.MutableShortBooleanMap |
asSynchronized() |
com.gs.collections.api.map.primitive.MutableShortBooleanMap |
asUnmodifiable() |
com.gs.collections.api.iterator.MutableBooleanIterator |
booleanIterator() |
void |
clear() |
void |
compact()
Rehashes every element in the set into a new backing table of the smallest possible size and eliminating removed sentinels.
|
boolean |
containsKey(short key) |
boolean |
containsValue(boolean value) |
boolean |
equals(java.lang.Object obj)
Follows the same general contract as
Map.equals(Object). |
void |
forEachKey(com.gs.collections.api.block.procedure.primitive.ShortProcedure procedure) |
void |
forEachKeyValue(com.gs.collections.api.block.procedure.primitive.ShortBooleanProcedure procedure) |
boolean |
get(short key) |
protected boolean |
getEmptyValue() |
boolean |
getIfAbsent(short key,
boolean ifAbsent) |
boolean |
getIfAbsentPut(short key,
boolean value) |
boolean |
getIfAbsentPut(short key,
com.gs.collections.api.block.function.primitive.BooleanFunction0 function) |
<P> boolean |
getIfAbsentPutWith(short key,
com.gs.collections.api.block.function.primitive.BooleanFunction<? super P> function,
P parameter) |
boolean |
getIfAbsentPutWithKey(short key,
com.gs.collections.api.block.function.primitive.ShortToBooleanFunction function) |
protected int |
getOccupiedWithData() |
boolean |
getOrThrow(short key) |
protected AbstractMutableBooleanValuesMap.SentinelValues |
getSentinelValues() |
protected int |
getTableSize() |
protected boolean |
getValueAtIndex(int index) |
int |
hashCode()
Follows the same general contract as
Map.hashCode(). |
protected boolean |
isNonSentinelAtIndex(int index) |
com.gs.collections.api.set.primitive.MutableShortSet |
keySet() |
com.gs.collections.api.LazyShortIterable |
keysView() |
com.gs.collections.api.RichIterable<com.gs.collections.api.tuple.primitive.ShortBooleanPair> |
keyValuesView() |
static ShortBooleanHashMap |
newWithKeysValues(short key1,
boolean value1) |
static ShortBooleanHashMap |
newWithKeysValues(short key1,
boolean value1,
short key2,
boolean value2) |
static ShortBooleanHashMap |
newWithKeysValues(short key1,
boolean value1,
short key2,
boolean value2,
short key3,
boolean value3) |
static ShortBooleanHashMap |
newWithKeysValues(short key1,
boolean value1,
short key2,
boolean value2,
short key3,
boolean value3,
short key4,
boolean value4) |
void |
put(short key,
boolean value) |
void |
putAll(com.gs.collections.api.map.primitive.ShortBooleanMap map) |
void |
readExternal(java.io.ObjectInput in) |
ShortBooleanHashMap |
reject(com.gs.collections.api.block.predicate.primitive.ShortBooleanPredicate predicate) |
void |
remove(short key) |
void |
removeKey(short key) |
boolean |
removeKeyIfAbsent(short key,
boolean value) |
ShortBooleanHashMap |
select(com.gs.collections.api.block.predicate.primitive.ShortBooleanPredicate predicate) |
protected void |
setSentinelValuesNull() |
com.gs.collections.api.map.primitive.ImmutableShortBooleanMap |
toImmutable() |
java.lang.String |
toString()
Returns a string representation of this PrimitiveIterable.
|
boolean |
updateValue(short key,
boolean initialValueIfAbsent,
com.gs.collections.api.block.function.primitive.BooleanToBooleanFunction function) |
com.gs.collections.api.collection.primitive.MutableBooleanCollection |
values() |
ShortBooleanHashMap |
withKeysValues(short key1,
boolean value1,
short key2,
boolean value2) |
ShortBooleanHashMap |
withKeysValues(short key1,
boolean value1,
short key2,
boolean value2,
short key3,
boolean value3) |
ShortBooleanHashMap |
withKeysValues(short key1,
boolean value1,
short key2,
boolean value2,
short key3,
boolean value3,
short key4,
boolean value4) |
ShortBooleanHashMap |
withKeyValue(short key1,
boolean value1) |
ShortBooleanHashMap |
withoutAllKeys(com.gs.collections.api.ShortIterable keys) |
ShortBooleanHashMap |
withoutKey(short key) |
void |
writeExternal(java.io.ObjectOutput out) |
addEmptyKeyValue, addRemovedKeyValue, allSatisfy, anySatisfy, appendString, collect, contains, containsAll, count, detectIfNone, each, forEach, forEachValue, injectInto, isEmpty, noneSatisfy, notEmpty, reject, removeEmptyKey, removeRemovedKey, select, size, toArrayappendString, appendString, asLazy, containsAll, makeString, makeString, makeString, toBag, toList, toSetclone, finalize, getClass, notify, notifyAll, wait, wait, waitcollect, reject, selectallSatisfy, anySatisfy, asLazy, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, noneSatisfy, toArray, toBag, toList, toSetappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, sizeisEmpty, notEmpty, sizepublic ShortBooleanHashMap()
public ShortBooleanHashMap(int initialCapacity)
public ShortBooleanHashMap(com.gs.collections.api.map.primitive.ShortBooleanMap map)
@Deprecated
public ShortBooleanHashMap(int initialCapacity,
float loadFactor)
protected int getOccupiedWithData()
getOccupiedWithData in class AbstractMutableBooleanValuesMapprotected AbstractMutableBooleanValuesMap.SentinelValues getSentinelValues()
getSentinelValues in class AbstractMutableBooleanValuesMapprotected void setSentinelValuesNull()
setSentinelValuesNull in class AbstractMutableBooleanValuesMapprotected boolean getEmptyValue()
getEmptyValue in class AbstractMutableBooleanValuesMapprotected int getTableSize()
getTableSize in class AbstractMutableBooleanValuesMapprotected boolean getValueAtIndex(int index)
getValueAtIndex in class AbstractMutableBooleanValuesMapprotected boolean isNonSentinelAtIndex(int index)
isNonSentinelAtIndex in class AbstractMutableBooleanValuesMappublic com.gs.collections.api.map.primitive.MutableShortBooleanMap asUnmodifiable()
asUnmodifiable in interface com.gs.collections.api.map.primitive.MutableShortBooleanMappublic com.gs.collections.api.map.primitive.MutableShortBooleanMap asSynchronized()
asSynchronized in interface com.gs.collections.api.map.primitive.MutableShortBooleanMappublic com.gs.collections.api.map.primitive.ImmutableShortBooleanMap toImmutable()
toImmutable in interface com.gs.collections.api.map.primitive.ShortBooleanMappublic static ShortBooleanHashMap newWithKeysValues(short key1, boolean value1)
public static ShortBooleanHashMap newWithKeysValues(short key1, boolean value1, short key2, boolean value2)
public static ShortBooleanHashMap newWithKeysValues(short key1, boolean value1, short key2, boolean value2, short key3, boolean value3)
public static ShortBooleanHashMap newWithKeysValues(short key1, boolean value1, short key2, boolean value2, short key3, boolean value3, short key4, boolean value4)
public ShortBooleanHashMap withKeyValue(short key1, boolean value1)
withKeyValue in interface com.gs.collections.api.map.primitive.MutableShortBooleanMappublic ShortBooleanHashMap withKeysValues(short key1, boolean value1, short key2, boolean value2)
public ShortBooleanHashMap withKeysValues(short key1, boolean value1, short key2, boolean value2, short key3, boolean value3)
public ShortBooleanHashMap withKeysValues(short key1, boolean value1, short key2, boolean value2, short key3, boolean value3, short key4, boolean value4)
public ShortBooleanHashMap withoutKey(short key)
withoutKey in interface com.gs.collections.api.map.primitive.MutableShortBooleanMappublic ShortBooleanHashMap withoutAllKeys(com.gs.collections.api.ShortIterable keys)
withoutAllKeys in interface com.gs.collections.api.map.primitive.MutableShortBooleanMappublic void compact()
public void clear()
clear in interface com.gs.collections.api.map.primitive.MutableBooleanValuesMapclear in interface MutableShortKeysMappublic void put(short key,
boolean value)
put in interface com.gs.collections.api.map.primitive.MutableShortBooleanMappublic void putAll(com.gs.collections.api.map.primitive.ShortBooleanMap map)
putAll in interface com.gs.collections.api.map.primitive.MutableShortBooleanMappublic boolean containsKey(short key)
containsKey in interface com.gs.collections.api.map.primitive.ShortBooleanMapcontainsKey in interface ShortKeysMappublic boolean containsValue(boolean value)
containsValue in interface com.gs.collections.api.map.primitive.BooleanValuesMappublic boolean get(short key)
get in interface com.gs.collections.api.map.primitive.ShortBooleanMappublic boolean getIfAbsent(short key,
boolean ifAbsent)
getIfAbsent in interface com.gs.collections.api.map.primitive.ShortBooleanMappublic boolean getOrThrow(short key)
getOrThrow in interface com.gs.collections.api.map.primitive.ShortBooleanMappublic boolean getIfAbsentPut(short key,
boolean value)
getIfAbsentPut in interface com.gs.collections.api.map.primitive.MutableShortBooleanMappublic boolean getIfAbsentPut(short key,
com.gs.collections.api.block.function.primitive.BooleanFunction0 function)
getIfAbsentPut in interface com.gs.collections.api.map.primitive.MutableShortBooleanMappublic <P> boolean getIfAbsentPutWith(short key,
com.gs.collections.api.block.function.primitive.BooleanFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface com.gs.collections.api.map.primitive.MutableShortBooleanMappublic boolean getIfAbsentPutWithKey(short key,
com.gs.collections.api.block.function.primitive.ShortToBooleanFunction function)
getIfAbsentPutWithKey in interface com.gs.collections.api.map.primitive.MutableShortBooleanMappublic boolean updateValue(short key,
boolean initialValueIfAbsent,
com.gs.collections.api.block.function.primitive.BooleanToBooleanFunction function)
updateValue in interface com.gs.collections.api.map.primitive.MutableShortBooleanMappublic void removeKey(short key)
removeKey in interface com.gs.collections.api.map.primitive.MutableShortBooleanMapremoveKey in interface MutableShortKeysMappublic void remove(short key)
remove in interface com.gs.collections.api.map.primitive.MutableShortBooleanMappublic boolean removeKeyIfAbsent(short key,
boolean value)
removeKeyIfAbsent in interface com.gs.collections.api.map.primitive.MutableShortBooleanMappublic boolean equals(java.lang.Object obj)
com.gs.collections.api.map.primitive.ShortBooleanMapMap.equals(Object).equals in interface com.gs.collections.api.map.primitive.ShortBooleanMapequals in class java.lang.Objectpublic int hashCode()
com.gs.collections.api.map.primitive.ShortBooleanMapMap.hashCode().hashCode in interface com.gs.collections.api.map.primitive.ShortBooleanMaphashCode in class java.lang.Objectpublic java.lang.String toString()
com.gs.collections.api.PrimitiveIterabletoString in interface com.gs.collections.api.map.primitive.ShortBooleanMaptoString in interface com.gs.collections.api.PrimitiveIterabletoString in class AbstractBooleanIterablepublic com.gs.collections.api.iterator.MutableBooleanIterator booleanIterator()
booleanIterator in interface com.gs.collections.api.BooleanIterablebooleanIterator in interface com.gs.collections.api.map.primitive.MutableBooleanValuesMappublic void forEachKey(com.gs.collections.api.block.procedure.primitive.ShortProcedure procedure)
forEachKey in interface com.gs.collections.api.map.primitive.ShortBooleanMapforEachKey in interface ShortKeysMappublic void forEachKeyValue(com.gs.collections.api.block.procedure.primitive.ShortBooleanProcedure procedure)
forEachKeyValue in interface com.gs.collections.api.map.primitive.ShortBooleanMappublic ShortBooleanHashMap select(com.gs.collections.api.block.predicate.primitive.ShortBooleanPredicate predicate)
select in interface com.gs.collections.api.map.primitive.MutableShortBooleanMapselect in interface com.gs.collections.api.map.primitive.ShortBooleanMappublic ShortBooleanHashMap reject(com.gs.collections.api.block.predicate.primitive.ShortBooleanPredicate predicate)
reject in interface com.gs.collections.api.map.primitive.MutableShortBooleanMapreject in interface com.gs.collections.api.map.primitive.ShortBooleanMappublic com.gs.collections.api.LazyShortIterable keysView()
keysView in interface com.gs.collections.api.map.primitive.ShortBooleanMappublic com.gs.collections.api.RichIterable<com.gs.collections.api.tuple.primitive.ShortBooleanPair> keyValuesView()
keyValuesView in interface com.gs.collections.api.map.primitive.ShortBooleanMappublic void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOExceptionpublic void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablejava.io.IOExceptionjava.lang.ClassNotFoundExceptionpublic com.gs.collections.api.set.primitive.MutableShortSet keySet()
keySet in interface com.gs.collections.api.map.primitive.ShortBooleanMappublic com.gs.collections.api.collection.primitive.MutableBooleanCollection values()
values in interface com.gs.collections.api.map.primitive.BooleanValuesMap