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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FloatBooleanHashMap()FloatBooleanHashMap(int initialCapacity)FloatBooleanHashMap(int initialCapacity, float loadFactor)Deprecated.in 5.1.0.FloatBooleanHashMap(FloatBooleanMap map)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description MutableFloatBooleanMapasSynchronized()MutableFloatBooleanMapasUnmodifiable()MutableBooleanIteratorbooleanIterator()voidclear()voidcompact()Deprecated.since 12.0 - UsetrimToSize()insteadbooleancontainsKey(float key)booleancontainsValue(boolean value)booleanequals(Object obj)voidforEachKey(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()MutableFloatSetkeySet()LazyFloatIterablekeysView()RichIterable<FloatBooleanPair>keyValuesView()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)voidreadExternal(ObjectInput in)FloatBooleanHashMapreject(FloatBooleanPredicate predicate)voidremove(float key)voidremoveKey(float key)booleanremoveKeyIfAbsent(float key, boolean value)FloatBooleanHashMapselect(FloatBooleanPredicate predicate)ImmutableFloatBooleanMaptoImmutable()StringtoString()booleantrimToSize()booleanupdateValue(float key, boolean initialValueIfAbsent, BooleanToBooleanFunction function)voidupdateValues(FloatBooleanToBooleanFunction function)MutableBooleanCollectionvalues()FloatBooleanHashMapwithKeysValues(float key1, boolean value1, float key2, boolean value2)FloatBooleanHashMapwithKeysValues(float key1, boolean value1, float key2, boolean value2, float key3, boolean value3)FloatBooleanHashMapwithKeysValues(float key1, boolean value1, float key2, boolean value2, float key3, boolean value3, float key4, boolean value4)FloatBooleanHashMapwithKeyValue(float key1, boolean value1)FloatBooleanHashMapwithoutAllKeys(FloatIterable keys)FloatBooleanHashMapwithoutKey(float 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.FloatBooleanMap
injectIntoKeyValue
-
Methods inherited from interface org.eclipse.collections.impl.map.primitive.FloatKeysMap
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.MutableFloatBooleanMap
getAndPut, putPair, withAllKeyValues
-
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
-
-
-
-
Constructor Detail
-
FloatBooleanHashMap
public FloatBooleanHashMap()
-
FloatBooleanHashMap
public FloatBooleanHashMap(int initialCapacity)
-
FloatBooleanHashMap
public FloatBooleanHashMap(FloatBooleanMap map)
-
FloatBooleanHashMap
@Deprecated public FloatBooleanHashMap(int initialCapacity, float loadFactor)
Deprecated.in 5.1.0.
-
-
Method Detail
-
asUnmodifiable
public MutableFloatBooleanMap asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableFloatBooleanMap
-
asSynchronized
public MutableFloatBooleanMap asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableFloatBooleanMap
-
toImmutable
public ImmutableFloatBooleanMap toImmutable()
- Specified by:
toImmutablein interfaceFloatBooleanMap
-
newWithKeysValues
public static FloatBooleanHashMap newWithKeysValues(float key1, boolean value1)
-
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
public FloatBooleanHashMap withKeyValue(float key1, boolean value1)
- Specified by:
withKeyValuein interfaceMutableFloatBooleanMap
-
withKeysValues
public FloatBooleanHashMap withKeysValues(float key1, boolean value1, float key2, boolean value2)
-
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
public FloatBooleanHashMap withoutKey(float key)
- Specified by:
withoutKeyin interfaceMutableFloatBooleanMap
-
withoutAllKeys
public FloatBooleanHashMap withoutAllKeys(FloatIterable keys)
- Specified by:
withoutAllKeysin interfaceMutableFloatBooleanMap
-
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 interfaceMutableFloatKeysMap
-
put
public void put(float key, boolean value)- Specified by:
putin interfaceMutableFloatBooleanMap
-
putAll
public void putAll(FloatBooleanMap map)
- Specified by:
putAllin interfaceMutableFloatBooleanMap
-
updateValues
public void updateValues(FloatBooleanToBooleanFunction function)
- 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
public boolean getIfAbsentPut(float key, BooleanFunction0 function)- Specified by:
getIfAbsentPutin interfaceMutableFloatBooleanMap
-
getIfAbsentPutWith
public <P> boolean getIfAbsentPutWith(float key, BooleanFunction<? super P> function, P parameter)- Specified by:
getIfAbsentPutWithin interfaceMutableFloatBooleanMap
-
getIfAbsentPutWithKey
public boolean getIfAbsentPutWithKey(float key, FloatToBooleanFunction function)- 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
public boolean equals(Object obj)
- Specified by:
equalsin interfaceFloatBooleanMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceFloatBooleanMap- Overrides:
hashCodein classObject
-
toString
public String toString()
- Specified by:
toStringin interfaceFloatBooleanMap- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classAbstractBooleanIterable
-
booleanIterator
public MutableBooleanIterator booleanIterator()
- Specified by:
booleanIteratorin interfaceBooleanIterable- Specified by:
booleanIteratorin interfaceMutableBooleanValuesMap
-
forEachKey
public void forEachKey(FloatProcedure procedure)
- Specified by:
forEachKeyin interfaceFloatBooleanMap- Specified by:
forEachKeyin interfaceFloatKeysMap
-
forEachKeyValue
public void forEachKeyValue(FloatBooleanProcedure procedure)
- Specified by:
forEachKeyValuein interfaceFloatBooleanMap
-
select
public FloatBooleanHashMap select(FloatBooleanPredicate predicate)
- Specified by:
selectin interfaceFloatBooleanMap- Specified by:
selectin interfaceMutableFloatBooleanMap
-
reject
public FloatBooleanHashMap reject(FloatBooleanPredicate predicate)
- Specified by:
rejectin interfaceFloatBooleanMap- Specified by:
rejectin interfaceMutableFloatBooleanMap
-
keysView
public LazyFloatIterable keysView()
- Specified by:
keysViewin interfaceFloatBooleanMap
-
keyValuesView
public RichIterable<FloatBooleanPair> keyValuesView()
- Specified by:
keyValuesViewin interfaceFloatBooleanMap
-
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 MutableFloatSet keySet()
- Specified by:
keySetin interfaceFloatBooleanMap
-
values
public MutableBooleanCollection values()
- Specified by:
valuesin interfaceBooleanValuesMap
-
-