Class LongBooleanHashMap
java.lang.Object
org.eclipse.collections.impl.primitive.AbstractBooleanIterable
org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableBooleanValuesMap
org.eclipse.collections.impl.map.mutable.primitive.LongBooleanHashMap
- All Implemented Interfaces:
Externalizable,Serializable,BooleanIterable,BooleanValuesMap,LongBooleanMap,MutableBooleanValuesMap,MutableLongBooleanMap,PrimitiveIterable,MutableLongKeysMap,LongKeysMap
public class LongBooleanHashMap
extends AbstractMutableBooleanValuesMap
implements MutableLongBooleanMap, MutableLongKeysMap, Externalizable
This file was automatically generated from template file primitiveBooleanHashMap.stg.
- Since:
- 3.0.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionLongBooleanHashMap(int initialCapacity) LongBooleanHashMap(int initialCapacity, float loadFactor) Deprecated.in 5.1.0. -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()voidcompact()Deprecated.since 12.0 - UsetrimToSize()insteadbooleancontainsKey(long key) booleancontainsValue(boolean value) booleanvoidforEachKey(LongProcedure procedure) voidforEachKeyValue(LongBooleanProcedure procedure) booleanget(long key) booleangetIfAbsent(long key, boolean ifAbsent) booleangetIfAbsentPut(long key, boolean value) booleangetIfAbsentPut(long key, BooleanFunction0 function) <P> booleangetIfAbsentPutWith(long key, BooleanFunction<? super P> function, P parameter) booleangetIfAbsentPutWithKey(long key, LongToBooleanFunction function) booleangetOrThrow(long key) inthashCode()keySet()keysView()static LongBooleanHashMapnewWithKeysValues(long key1, boolean value1) static LongBooleanHashMapnewWithKeysValues(long key1, boolean value1, long key2, boolean value2) static LongBooleanHashMapnewWithKeysValues(long key1, boolean value1, long key2, boolean value2, long key3, boolean value3) static LongBooleanHashMapnewWithKeysValues(long key1, boolean value1, long key2, boolean value2, long key3, boolean value3, long key4, boolean value4) voidput(long key, boolean value) voidputAll(LongBooleanMap map) voidreject(LongBooleanPredicate predicate) voidremove(long key) voidremoveKey(long key) booleanremoveKeyIfAbsent(long key, boolean value) select(LongBooleanPredicate predicate) toString()booleanbooleanupdateValue(long key, boolean initialValueIfAbsent, BooleanToBooleanFunction function) voidupdateValues(LongBooleanToBooleanFunction function) values()withKeysValues(long key1, boolean value1, long key2, boolean value2) withKeysValues(long key1, boolean value1, long key2, boolean value2, long key3, boolean value3) withKeysValues(long key1, boolean value1, long key2, boolean value2, long key3, boolean value3, long key4, boolean value4) withKeyValue(long key1, boolean value1) withoutAllKeys(LongIterable keys) withoutKey(long 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.LongBooleanMap
allSatisfyKeyValue, injectIntoKeyValueMethods inherited from interface org.eclipse.collections.impl.map.primitive.LongKeysMap
isEmpty, notEmpty, sizeMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableBooleanValuesMap
collect, reject, selectMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableLongBooleanMap
getAndPut, putPair, withAllKeyValuesMethods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
-
Constructor Details
-
LongBooleanHashMap
public LongBooleanHashMap() -
LongBooleanHashMap
public LongBooleanHashMap(int initialCapacity) -
LongBooleanHashMap
-
LongBooleanHashMap
Deprecated.in 5.1.0.
-
-
Method Details
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableLongBooleanMap
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableLongBooleanMap
-
toImmutable
- Specified by:
toImmutablein interfaceLongBooleanMap
-
newWithKeysValues
-
newWithKeysValues
public static LongBooleanHashMap newWithKeysValues(long key1, boolean value1, long key2, boolean value2) -
newWithKeysValues
public static LongBooleanHashMap newWithKeysValues(long key1, boolean value1, long key2, boolean value2, long key3, boolean value3) -
newWithKeysValues
public static LongBooleanHashMap newWithKeysValues(long key1, boolean value1, long key2, boolean value2, long key3, boolean value3, long key4, boolean value4) -
withKeyValue
- Specified by:
withKeyValuein interfaceMutableLongBooleanMap
-
withKeysValues
-
withKeysValues
public LongBooleanHashMap withKeysValues(long key1, boolean value1, long key2, boolean value2, long key3, boolean value3) -
withKeysValues
public LongBooleanHashMap withKeysValues(long key1, boolean value1, long key2, boolean value2, long key3, boolean value3, long key4, boolean value4) -
withoutKey
- Specified by:
withoutKeyin interfaceMutableLongBooleanMap
-
withoutAllKeys
- Specified by:
withoutAllKeysin interfaceMutableLongBooleanMap
-
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 interfaceMutableLongKeysMap
-
put
public void put(long key, boolean value) - Specified by:
putin interfaceMutableLongBooleanMap
-
putAll
- Specified by:
putAllin interfaceMutableLongBooleanMap
-
updateValues
- Specified by:
updateValuesin interfaceMutableLongBooleanMap
-
containsKey
public boolean containsKey(long key) - Specified by:
containsKeyin interfaceLongBooleanMap- Specified by:
containsKeyin interfaceLongKeysMap
-
containsValue
public boolean containsValue(boolean value) - Specified by:
containsValuein interfaceBooleanValuesMap
-
get
public boolean get(long key) - Specified by:
getin interfaceLongBooleanMap
-
getIfAbsent
public boolean getIfAbsent(long key, boolean ifAbsent) - Specified by:
getIfAbsentin interfaceLongBooleanMap
-
getOrThrow
public boolean getOrThrow(long key) - Specified by:
getOrThrowin interfaceLongBooleanMap
-
getIfAbsentPut
public boolean getIfAbsentPut(long key, boolean value) - Specified by:
getIfAbsentPutin interfaceMutableLongBooleanMap
-
getIfAbsentPut
- Specified by:
getIfAbsentPutin interfaceMutableLongBooleanMap
-
getIfAbsentPutWith
- Specified by:
getIfAbsentPutWithin interfaceMutableLongBooleanMap
-
getIfAbsentPutWithKey
- Specified by:
getIfAbsentPutWithKeyin interfaceMutableLongBooleanMap
-
updateValue
public boolean updateValue(long key, boolean initialValueIfAbsent, BooleanToBooleanFunction function) - Specified by:
updateValuein interfaceMutableLongBooleanMap
-
removeKey
public void removeKey(long key) - Specified by:
removeKeyin interfaceMutableLongBooleanMap- Specified by:
removeKeyin interfaceMutableLongKeysMap
-
remove
public void remove(long key) - Specified by:
removein interfaceMutableLongBooleanMap
-
removeKeyIfAbsent
public boolean removeKeyIfAbsent(long key, boolean value) - Specified by:
removeKeyIfAbsentin interfaceMutableLongBooleanMap
-
equals
- Specified by:
equalsin interfaceLongBooleanMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceLongBooleanMap- Overrides:
hashCodein classObject
-
toString
- Specified by:
toStringin interfaceLongBooleanMap- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classAbstractBooleanIterable
-
booleanIterator
- Specified by:
booleanIteratorin interfaceBooleanIterable- Specified by:
booleanIteratorin interfaceMutableBooleanValuesMap
-
forEachKey
- Specified by:
forEachKeyin interfaceLongBooleanMap- Specified by:
forEachKeyin interfaceLongKeysMap
-
forEachKeyValue
- Specified by:
forEachKeyValuein interfaceLongBooleanMap
-
select
- Specified by:
selectin interfaceLongBooleanMap- Specified by:
selectin interfaceMutableLongBooleanMap
-
reject
- Specified by:
rejectin interfaceLongBooleanMap- Specified by:
rejectin interfaceMutableLongBooleanMap
-
keysView
- Specified by:
keysViewin interfaceLongBooleanMap
-
keyValuesView
- Specified by:
keyValuesViewin interfaceLongBooleanMap
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
keySet
- Specified by:
keySetin interfaceLongBooleanMap
-
values
- Specified by:
valuesin interfaceBooleanValuesMap
-