Class ShortBooleanHashMap
java.lang.Object
org.eclipse.collections.impl.primitive.AbstractBooleanIterable
org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableBooleanValuesMap
org.eclipse.collections.impl.map.mutable.primitive.ShortBooleanHashMap
- All Implemented Interfaces:
Externalizable,Serializable,BooleanIterable,BooleanValuesMap,MutableBooleanValuesMap,MutableShortBooleanMap,ShortBooleanMap,PrimitiveIterable,MutableShortKeysMap,ShortKeysMap
public class ShortBooleanHashMap
extends AbstractMutableBooleanValuesMap
implements MutableShortBooleanMap, MutableShortKeysMap, Externalizable
This file was automatically generated from template file primitiveBooleanHashMap.stg.
- Since:
- 3.0.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionShortBooleanHashMap(int initialCapacity) ShortBooleanHashMap(int initialCapacity, float loadFactor) Deprecated.in 5.1.0. -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()voidcompact()Deprecated.since 12.0 - UsetrimToSize()insteadbooleancontainsKey(short key) booleancontainsValue(boolean value) booleanvoidforEachKey(ShortProcedure procedure) voidforEachKeyValue(ShortBooleanProcedure procedure) booleanget(short key) booleangetIfAbsent(short key, boolean ifAbsent) booleangetIfAbsentPut(short key, boolean value) booleangetIfAbsentPut(short key, BooleanFunction0 function) <P> booleangetIfAbsentPutWith(short key, BooleanFunction<? super P> function, P parameter) booleangetIfAbsentPutWithKey(short key, ShortToBooleanFunction function) booleangetOrThrow(short key) inthashCode()keySet()keysView()static ShortBooleanHashMapnewWithKeysValues(short key1, boolean value1) static ShortBooleanHashMapnewWithKeysValues(short key1, boolean value1, short key2, boolean value2) static ShortBooleanHashMapnewWithKeysValues(short key1, boolean value1, short key2, boolean value2, short key3, boolean value3) static ShortBooleanHashMapnewWithKeysValues(short key1, boolean value1, short key2, boolean value2, short key3, boolean value3, short key4, boolean value4) voidput(short key, boolean value) voidputAll(ShortBooleanMap map) voidreject(ShortBooleanPredicate predicate) voidremove(short key) voidremoveKey(short key) booleanremoveKeyIfAbsent(short key, boolean value) select(ShortBooleanPredicate predicate) toString()booleanbooleanupdateValue(short key, boolean initialValueIfAbsent, BooleanToBooleanFunction function) voidupdateValues(ShortBooleanToBooleanFunction function) values()withKeysValues(short key1, boolean value1, short key2, boolean value2) withKeysValues(short key1, boolean value1, short key2, boolean value2, short key3, boolean value3) withKeysValues(short key1, boolean value1, short key2, boolean value2, short key3, boolean value3, short key4, boolean value4) withKeyValue(short key1, boolean value1) withoutAllKeys(ShortIterable keys) withoutKey(short key) voidMethods inherited from class org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableBooleanValuesMap
allSatisfy, anySatisfy, appendString, chunk, collect, contains, containsAll, count, detectIfNone, each, forEach, forEachValue, injectInto, isEmpty, noneSatisfy, notEmpty, reject, select, size, toArray, toArrayMethods inherited from class org.eclipse.collections.impl.primitive.AbstractBooleanIterable
asLazy, toBag, toList, toSetMethods inherited from interface org.eclipse.collections.api.BooleanIterable
allSatisfy, 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, toSetMethods inherited from interface org.eclipse.collections.api.map.primitive.BooleanValuesMap
forEachValue, tapMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableBooleanValuesMap
collect, reject, selectMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableShortBooleanMap
getAndPut, putPair, withAllKeyValuesMethods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, sizeMethods inherited from interface org.eclipse.collections.api.map.primitive.ShortBooleanMap
allSatisfyKeyValue, injectIntoKeyValueMethods inherited from interface org.eclipse.collections.impl.map.primitive.ShortKeysMap
isEmpty, notEmpty, size
-
Constructor Details
-
ShortBooleanHashMap
public ShortBooleanHashMap() -
ShortBooleanHashMap
public ShortBooleanHashMap(int initialCapacity) -
ShortBooleanHashMap
-
ShortBooleanHashMap
Deprecated.in 5.1.0.
-
-
Method Details
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableShortBooleanMap
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableShortBooleanMap
-
toImmutable
- Specified by:
toImmutablein interfaceShortBooleanMap
-
newWithKeysValues
-
newWithKeysValues
public static ShortBooleanHashMap newWithKeysValues(short key1, boolean value1, short key2, boolean value2) -
newWithKeysValues
public static ShortBooleanHashMap newWithKeysValues(short key1, boolean value1, short key2, boolean value2, short key3, boolean value3) -
newWithKeysValues
public static ShortBooleanHashMap newWithKeysValues(short key1, boolean value1, short key2, boolean value2, short key3, boolean value3, short key4, boolean value4) -
withKeyValue
- Specified by:
withKeyValuein interfaceMutableShortBooleanMap
-
withKeysValues
-
withKeysValues
public ShortBooleanHashMap withKeysValues(short key1, boolean value1, short key2, boolean value2, short key3, boolean value3) -
withKeysValues
public ShortBooleanHashMap withKeysValues(short key1, boolean value1, short key2, boolean value2, short key3, boolean value3, short key4, boolean value4) -
withoutKey
- Specified by:
withoutKeyin interfaceMutableShortBooleanMap
-
withoutAllKeys
- Specified by:
withoutAllKeysin interfaceMutableShortBooleanMap
-
trimToSize
public boolean trimToSize()- Since:
- 12.0
-
compact
Deprecated.since 12.0 - UsetrimToSize()insteadRehashes every element in the set into a new backing table of the smallest possible size and eliminating removed sentinels. -
clear
public void clear()- Specified by:
clearin interfaceMutableBooleanValuesMap- Specified by:
clearin interfaceMutableShortKeysMap
-
put
public void put(short key, boolean value) - Specified by:
putin interfaceMutableShortBooleanMap
-
putAll
- Specified by:
putAllin interfaceMutableShortBooleanMap
-
updateValues
- Specified by:
updateValuesin interfaceMutableShortBooleanMap
-
containsKey
public boolean containsKey(short key) - Specified by:
containsKeyin interfaceShortBooleanMap- Specified by:
containsKeyin interfaceShortKeysMap
-
containsValue
public boolean containsValue(boolean value) - Specified by:
containsValuein interfaceBooleanValuesMap
-
get
public boolean get(short key) - Specified by:
getin interfaceShortBooleanMap
-
getIfAbsent
public boolean getIfAbsent(short key, boolean ifAbsent) - Specified by:
getIfAbsentin interfaceShortBooleanMap
-
getOrThrow
public boolean getOrThrow(short key) - Specified by:
getOrThrowin interfaceShortBooleanMap
-
getIfAbsentPut
public boolean getIfAbsentPut(short key, boolean value) - Specified by:
getIfAbsentPutin interfaceMutableShortBooleanMap
-
getIfAbsentPut
- Specified by:
getIfAbsentPutin interfaceMutableShortBooleanMap
-
getIfAbsentPutWith
- Specified by:
getIfAbsentPutWithin interfaceMutableShortBooleanMap
-
getIfAbsentPutWithKey
- Specified by:
getIfAbsentPutWithKeyin interfaceMutableShortBooleanMap
-
updateValue
public boolean updateValue(short key, boolean initialValueIfAbsent, BooleanToBooleanFunction function) - Specified by:
updateValuein interfaceMutableShortBooleanMap
-
removeKey
public void removeKey(short key) - Specified by:
removeKeyin interfaceMutableShortBooleanMap- Specified by:
removeKeyin interfaceMutableShortKeysMap
-
remove
public void remove(short key) - Specified by:
removein interfaceMutableShortBooleanMap
-
removeKeyIfAbsent
public boolean removeKeyIfAbsent(short key, boolean value) - Specified by:
removeKeyIfAbsentin interfaceMutableShortBooleanMap
-
equals
- Specified by:
equalsin interfaceShortBooleanMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceShortBooleanMap- Overrides:
hashCodein classObject
-
toString
- Specified by:
toStringin interfacePrimitiveIterable- Specified by:
toStringin interfaceShortBooleanMap- Overrides:
toStringin classAbstractBooleanIterable
-
booleanIterator
- Specified by:
booleanIteratorin interfaceBooleanIterable- Specified by:
booleanIteratorin interfaceMutableBooleanValuesMap
-
forEachKey
- Specified by:
forEachKeyin interfaceShortBooleanMap- Specified by:
forEachKeyin interfaceShortKeysMap
-
forEachKeyValue
- Specified by:
forEachKeyValuein interfaceShortBooleanMap
-
select
- Specified by:
selectin interfaceMutableShortBooleanMap- Specified by:
selectin interfaceShortBooleanMap
-
reject
- Specified by:
rejectin interfaceMutableShortBooleanMap- Specified by:
rejectin interfaceShortBooleanMap
-
keysView
- Specified by:
keysViewin interfaceShortBooleanMap
-
keyValuesView
- Specified by:
keyValuesViewin interfaceShortBooleanMap
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
keySet
- Specified by:
keySetin interfaceShortBooleanMap
-
values
- Specified by:
valuesin interfaceBooleanValuesMap
-