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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DoubleBooleanHashMap()DoubleBooleanHashMap(int initialCapacity)DoubleBooleanHashMap(int initialCapacity, float loadFactor)Deprecated.in 5.1.0.DoubleBooleanHashMap(DoubleBooleanMap map)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description MutableDoubleBooleanMapasSynchronized()MutableDoubleBooleanMapasUnmodifiable()MutableBooleanIteratorbooleanIterator()voidclear()voidcompact()Deprecated.since 12.0 - UsetrimToSize()insteadbooleancontainsKey(double key)booleancontainsValue(boolean value)booleanequals(Object obj)voidforEachKey(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()MutableDoubleSetkeySet()LazyDoubleIterablekeysView()RichIterable<DoubleBooleanPair>keyValuesView()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)voidreadExternal(ObjectInput in)DoubleBooleanHashMapreject(DoubleBooleanPredicate predicate)voidremove(double key)voidremoveKey(double key)booleanremoveKeyIfAbsent(double key, boolean value)DoubleBooleanHashMapselect(DoubleBooleanPredicate predicate)ImmutableDoubleBooleanMaptoImmutable()StringtoString()booleantrimToSize()booleanupdateValue(double key, boolean initialValueIfAbsent, BooleanToBooleanFunction function)voidupdateValues(DoubleBooleanToBooleanFunction function)MutableBooleanCollectionvalues()DoubleBooleanHashMapwithKeysValues(double key1, boolean value1, double key2, boolean value2)DoubleBooleanHashMapwithKeysValues(double key1, boolean value1, double key2, boolean value2, double key3, boolean value3)DoubleBooleanHashMapwithKeysValues(double key1, boolean value1, double key2, boolean value2, double key3, boolean value3, double key4, boolean value4)DoubleBooleanHashMapwithKeyValue(double key1, boolean value1)DoubleBooleanHashMapwithoutAllKeys(DoubleIterable keys)DoubleBooleanHashMapwithoutKey(double key)voidwriteExternal(ObjectOutput out)-
Methods 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, toArray
-
Methods inherited from class org.eclipse.collections.impl.primitive.AbstractBooleanIterable
asLazy, toBag, toList, toSet
-
Methods 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, toSet
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.BooleanValuesMap
forEachValue, tap
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.DoubleBooleanMap
injectIntoKeyValue
-
Methods inherited from interface org.eclipse.collections.impl.map.primitive.DoubleKeysMap
isEmpty, notEmpty, size
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableBooleanValuesMap
collect, reject, select
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableDoubleBooleanMap
getAndPut, putPair, withAllKeyValues
-
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
-
-
-
-
Constructor Detail
-
DoubleBooleanHashMap
public DoubleBooleanHashMap()
-
DoubleBooleanHashMap
public DoubleBooleanHashMap(int initialCapacity)
-
DoubleBooleanHashMap
public DoubleBooleanHashMap(DoubleBooleanMap map)
-
DoubleBooleanHashMap
@Deprecated public DoubleBooleanHashMap(int initialCapacity, float loadFactor)
Deprecated.in 5.1.0.
-
-
Method Detail
-
asUnmodifiable
public MutableDoubleBooleanMap asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableDoubleBooleanMap
-
asSynchronized
public MutableDoubleBooleanMap asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableDoubleBooleanMap
-
toImmutable
public ImmutableDoubleBooleanMap toImmutable()
- Specified by:
toImmutablein interfaceDoubleBooleanMap
-
newWithKeysValues
public static DoubleBooleanHashMap newWithKeysValues(double key1, boolean value1)
-
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
public DoubleBooleanHashMap withKeyValue(double key1, boolean value1)
- 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
public DoubleBooleanHashMap withoutKey(double key)
- Specified by:
withoutKeyin interfaceMutableDoubleBooleanMap
-
withoutAllKeys
public DoubleBooleanHashMap withoutAllKeys(DoubleIterable keys)
- Specified by:
withoutAllKeysin interfaceMutableDoubleBooleanMap
-
trimToSize
public boolean trimToSize()
- Since:
- 12.0
-
compact
@Deprecated public void 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
public void putAll(DoubleBooleanMap map)
- Specified by:
putAllin interfaceMutableDoubleBooleanMap
-
updateValues
public void updateValues(DoubleBooleanToBooleanFunction function)
- 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
public boolean getIfAbsentPut(double key, BooleanFunction0 function)- Specified by:
getIfAbsentPutin interfaceMutableDoubleBooleanMap
-
getIfAbsentPutWith
public <P> boolean getIfAbsentPutWith(double key, BooleanFunction<? super P> function, P parameter)- Specified by:
getIfAbsentPutWithin interfaceMutableDoubleBooleanMap
-
getIfAbsentPutWithKey
public boolean getIfAbsentPutWithKey(double key, DoubleToBooleanFunction function)- 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
public boolean equals(Object obj)
- Specified by:
equalsin interfaceDoubleBooleanMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceDoubleBooleanMap- Overrides:
hashCodein classObject
-
toString
public String toString()
- Specified by:
toStringin interfaceDoubleBooleanMap- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classAbstractBooleanIterable
-
booleanIterator
public MutableBooleanIterator booleanIterator()
- Specified by:
booleanIteratorin interfaceBooleanIterable- Specified by:
booleanIteratorin interfaceMutableBooleanValuesMap
-
forEachKey
public void forEachKey(DoubleProcedure procedure)
- Specified by:
forEachKeyin interfaceDoubleBooleanMap- Specified by:
forEachKeyin interfaceDoubleKeysMap
-
forEachKeyValue
public void forEachKeyValue(DoubleBooleanProcedure procedure)
- Specified by:
forEachKeyValuein interfaceDoubleBooleanMap
-
select
public DoubleBooleanHashMap select(DoubleBooleanPredicate predicate)
- Specified by:
selectin interfaceDoubleBooleanMap- Specified by:
selectin interfaceMutableDoubleBooleanMap
-
reject
public DoubleBooleanHashMap reject(DoubleBooleanPredicate predicate)
- Specified by:
rejectin interfaceDoubleBooleanMap- Specified by:
rejectin interfaceMutableDoubleBooleanMap
-
keysView
public LazyDoubleIterable keysView()
- Specified by:
keysViewin interfaceDoubleBooleanMap
-
keyValuesView
public RichIterable<DoubleBooleanPair> keyValuesView()
- Specified by:
keyValuesViewin interfaceDoubleBooleanMap
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
keySet
public MutableDoubleSet keySet()
- Specified by:
keySetin interfaceDoubleBooleanMap
-
values
public MutableBooleanCollection values()
- Specified by:
valuesin interfaceBooleanValuesMap
-
-