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