public class ShortBooleanHashMap extends AbstractMutableBooleanValuesMap implements MutableShortBooleanMap, MutableShortKeysMap, Externalizable
| Constructor and Description |
|---|
ShortBooleanHashMap() |
ShortBooleanHashMap(int initialCapacity) |
ShortBooleanHashMap(int initialCapacity,
float loadFactor)
Deprecated.
in 5.1.0.
|
ShortBooleanHashMap(ShortBooleanMap map) |
| Modifier and Type | Method and Description |
|---|---|
MutableShortBooleanMap |
asSynchronized() |
MutableShortBooleanMap |
asUnmodifiable() |
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(Object obj) |
void |
forEachKey(ShortProcedure procedure) |
void |
forEachKeyValue(ShortBooleanProcedure procedure) |
boolean |
get(short key) |
boolean |
getIfAbsent(short key,
boolean ifAbsent) |
boolean |
getIfAbsentPut(short key,
boolean value) |
boolean |
getIfAbsentPut(short key,
BooleanFunction0 function) |
<P> boolean |
getIfAbsentPutWith(short key,
BooleanFunction<? super P> function,
P parameter) |
boolean |
getIfAbsentPutWithKey(short key,
ShortToBooleanFunction function) |
boolean |
getOrThrow(short key) |
int |
hashCode() |
MutableShortSet |
keySet() |
LazyShortIterable |
keysView() |
RichIterable<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(ShortBooleanMap map) |
void |
readExternal(ObjectInput in) |
ShortBooleanHashMap |
reject(ShortBooleanPredicate predicate) |
void |
remove(short key) |
void |
removeKey(short key) |
boolean |
removeKeyIfAbsent(short key,
boolean value) |
ShortBooleanHashMap |
select(ShortBooleanPredicate predicate) |
ImmutableShortBooleanMap |
toImmutable() |
String |
toString() |
boolean |
updateValue(short key,
boolean initialValueIfAbsent,
BooleanToBooleanFunction function) |
void |
updateValues(ShortBooleanToBooleanFunction function) |
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(ShortIterable keys) |
ShortBooleanHashMap |
withoutKey(short key) |
void |
writeExternal(ObjectOutput out) |
allSatisfy, anySatisfy, appendString, chunk, collect, contains, containsAll, count, detectIfNone, each, forEach, forEachValue, injectInto, isEmpty, noneSatisfy, notEmpty, reject, select, size, toArray, toArrayasLazy, toBag, toList, toSetgetAndPut, putPair, withAllKeyValuesinjectIntoKeyValuecollect, reject, selectforEachValue, tapallSatisfy, anySatisfy, asLazy, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, flatCollect, forEach, injectInto, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, noneSatisfy, reduce, reduceIfEmpty, reject, select, toArray, toArray, toBag, toList, toSetappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, sizeisEmpty, notEmpty, sizepublic ShortBooleanHashMap()
public ShortBooleanHashMap(int initialCapacity)
public ShortBooleanHashMap(ShortBooleanMap map)
@Deprecated public ShortBooleanHashMap(int initialCapacity, float loadFactor)
public MutableShortBooleanMap asUnmodifiable()
asUnmodifiable in interface MutableShortBooleanMappublic MutableShortBooleanMap asSynchronized()
asSynchronized in interface MutableShortBooleanMappublic ImmutableShortBooleanMap toImmutable()
toImmutable in interface 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 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 MutableShortBooleanMappublic ShortBooleanHashMap withoutAllKeys(ShortIterable keys)
withoutAllKeys in interface MutableShortBooleanMappublic void compact()
public void clear()
clear in interface MutableBooleanValuesMapclear in interface MutableShortKeysMappublic void put(short key,
boolean value)
put in interface MutableShortBooleanMappublic void putAll(ShortBooleanMap map)
putAll in interface MutableShortBooleanMappublic void updateValues(ShortBooleanToBooleanFunction function)
updateValues in interface MutableShortBooleanMappublic boolean containsKey(short key)
containsKey in interface ShortBooleanMapcontainsKey in interface ShortKeysMappublic boolean containsValue(boolean value)
containsValue in interface BooleanValuesMappublic boolean get(short key)
get in interface ShortBooleanMappublic boolean getIfAbsent(short key,
boolean ifAbsent)
getIfAbsent in interface ShortBooleanMappublic boolean getOrThrow(short key)
getOrThrow in interface ShortBooleanMappublic boolean getIfAbsentPut(short key,
boolean value)
getIfAbsentPut in interface MutableShortBooleanMappublic boolean getIfAbsentPut(short key,
BooleanFunction0 function)
getIfAbsentPut in interface MutableShortBooleanMappublic <P> boolean getIfAbsentPutWith(short key,
BooleanFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface MutableShortBooleanMappublic boolean getIfAbsentPutWithKey(short key,
ShortToBooleanFunction function)
getIfAbsentPutWithKey in interface MutableShortBooleanMappublic boolean updateValue(short key,
boolean initialValueIfAbsent,
BooleanToBooleanFunction function)
updateValue in interface MutableShortBooleanMappublic void removeKey(short key)
removeKey in interface MutableShortBooleanMapremoveKey in interface MutableShortKeysMappublic void remove(short key)
remove in interface MutableShortBooleanMappublic boolean removeKeyIfAbsent(short key,
boolean value)
removeKeyIfAbsent in interface MutableShortBooleanMappublic boolean equals(Object obj)
equals in interface ShortBooleanMapequals in class Objectpublic int hashCode()
hashCode in interface ShortBooleanMaphashCode in class Objectpublic String toString()
toString in interface ShortBooleanMaptoString in interface PrimitiveIterabletoString in class AbstractBooleanIterablepublic MutableBooleanIterator booleanIterator()
booleanIterator in interface BooleanIterablebooleanIterator in interface MutableBooleanValuesMappublic void forEachKey(ShortProcedure procedure)
forEachKey in interface ShortBooleanMapforEachKey in interface ShortKeysMappublic void forEachKeyValue(ShortBooleanProcedure procedure)
forEachKeyValue in interface ShortBooleanMappublic ShortBooleanHashMap select(ShortBooleanPredicate predicate)
select in interface MutableShortBooleanMapselect in interface ShortBooleanMappublic ShortBooleanHashMap reject(ShortBooleanPredicate predicate)
reject in interface MutableShortBooleanMapreject in interface ShortBooleanMappublic LazyShortIterable keysView()
keysView in interface ShortBooleanMappublic RichIterable<ShortBooleanPair> keyValuesView()
keyValuesView in interface ShortBooleanMappublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic MutableShortSet keySet()
keySet in interface ShortBooleanMappublic MutableBooleanCollection values()
values in interface BooleanValuesMapCopyright © 2004–2022. All rights reserved.