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