public class FloatBooleanHashMap extends AbstractMutableBooleanValuesMap implements com.gs.collections.api.map.primitive.MutableFloatBooleanMap, MutableFloatKeysMap, java.io.Externalizable
AbstractMutableBooleanValuesMap.AbstractBooleanValuesCollection, AbstractMutableBooleanValuesMap.SentinelValues| Constructor and Description |
|---|
FloatBooleanHashMap() |
FloatBooleanHashMap(com.gs.collections.api.map.primitive.FloatBooleanMap map) |
FloatBooleanHashMap(int initialCapacity) |
FloatBooleanHashMap(int initialCapacity,
float loadFactor)
Deprecated.
in 5.1.0.
|
| Modifier and Type | Method and Description |
|---|---|
com.gs.collections.api.map.primitive.MutableFloatBooleanMap |
asSynchronized() |
com.gs.collections.api.map.primitive.MutableFloatBooleanMap |
asUnmodifiable() |
com.gs.collections.api.iterator.MutableBooleanIterator |
booleanIterator() |
void |
clear() |
void |
compact()
Rehashes every element in the set into a new backing table of the smallest possible size and eliminating removed sentinels.
|
boolean |
containsKey(float key) |
boolean |
containsValue(boolean value) |
boolean |
equals(java.lang.Object obj)
Follows the same general contract as
Map.equals(Object). |
void |
forEachKey(com.gs.collections.api.block.procedure.primitive.FloatProcedure procedure) |
void |
forEachKeyValue(com.gs.collections.api.block.procedure.primitive.FloatBooleanProcedure procedure) |
boolean |
get(float key) |
protected boolean |
getEmptyValue() |
boolean |
getIfAbsent(float key,
boolean ifAbsent) |
boolean |
getIfAbsentPut(float key,
boolean value) |
boolean |
getIfAbsentPut(float key,
com.gs.collections.api.block.function.primitive.BooleanFunction0 function) |
<P> boolean |
getIfAbsentPutWith(float key,
com.gs.collections.api.block.function.primitive.BooleanFunction<? super P> function,
P parameter) |
boolean |
getIfAbsentPutWithKey(float key,
com.gs.collections.api.block.function.primitive.FloatToBooleanFunction function) |
protected int |
getOccupiedWithData() |
boolean |
getOrThrow(float key) |
protected AbstractMutableBooleanValuesMap.SentinelValues |
getSentinelValues() |
protected int |
getTableSize() |
protected boolean |
getValueAtIndex(int index) |
int |
hashCode()
Follows the same general contract as
Map.hashCode(). |
protected boolean |
isNonSentinelAtIndex(int index) |
com.gs.collections.api.set.primitive.MutableFloatSet |
keySet() |
com.gs.collections.api.LazyFloatIterable |
keysView() |
com.gs.collections.api.RichIterable<com.gs.collections.api.tuple.primitive.FloatBooleanPair> |
keyValuesView() |
static FloatBooleanHashMap |
newWithKeysValues(float key1,
boolean value1) |
static FloatBooleanHashMap |
newWithKeysValues(float key1,
boolean value1,
float key2,
boolean value2) |
static FloatBooleanHashMap |
newWithKeysValues(float key1,
boolean value1,
float key2,
boolean value2,
float key3,
boolean value3) |
static FloatBooleanHashMap |
newWithKeysValues(float key1,
boolean value1,
float key2,
boolean value2,
float key3,
boolean value3,
float key4,
boolean value4) |
void |
put(float key,
boolean value) |
void |
putAll(com.gs.collections.api.map.primitive.FloatBooleanMap map) |
void |
readExternal(java.io.ObjectInput in) |
FloatBooleanHashMap |
reject(com.gs.collections.api.block.predicate.primitive.FloatBooleanPredicate predicate) |
void |
remove(float key) |
void |
removeKey(float key) |
boolean |
removeKeyIfAbsent(float key,
boolean value) |
FloatBooleanHashMap |
select(com.gs.collections.api.block.predicate.primitive.FloatBooleanPredicate predicate) |
protected void |
setSentinelValuesNull() |
com.gs.collections.api.map.primitive.ImmutableFloatBooleanMap |
toImmutable() |
java.lang.String |
toString()
Returns a string representation of this PrimitiveIterable.
|
boolean |
updateValue(float key,
boolean initialValueIfAbsent,
com.gs.collections.api.block.function.primitive.BooleanToBooleanFunction function) |
com.gs.collections.api.collection.primitive.MutableBooleanCollection |
values() |
FloatBooleanHashMap |
withKeysValues(float key1,
boolean value1,
float key2,
boolean value2) |
FloatBooleanHashMap |
withKeysValues(float key1,
boolean value1,
float key2,
boolean value2,
float key3,
boolean value3) |
FloatBooleanHashMap |
withKeysValues(float key1,
boolean value1,
float key2,
boolean value2,
float key3,
boolean value3,
float key4,
boolean value4) |
FloatBooleanHashMap |
withKeyValue(float key1,
boolean value1) |
FloatBooleanHashMap |
withoutAllKeys(com.gs.collections.api.FloatIterable keys) |
FloatBooleanHashMap |
withoutKey(float key) |
void |
writeExternal(java.io.ObjectOutput out) |
addEmptyKeyValue, addRemovedKeyValue, allSatisfy, anySatisfy, appendString, collect, contains, containsAll, count, detectIfNone, each, forEach, forEachValue, injectInto, isEmpty, noneSatisfy, notEmpty, reject, removeEmptyKey, removeRemovedKey, select, size, toArrayappendString, appendString, asLazy, containsAll, makeString, makeString, makeString, toBag, toList, toSetclone, finalize, getClass, notify, notifyAll, wait, wait, waitcollect, reject, selectallSatisfy, anySatisfy, asLazy, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, noneSatisfy, toArray, toBag, toList, toSetappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, sizeisEmpty, notEmpty, sizepublic FloatBooleanHashMap()
public FloatBooleanHashMap(int initialCapacity)
public FloatBooleanHashMap(com.gs.collections.api.map.primitive.FloatBooleanMap map)
@Deprecated
public FloatBooleanHashMap(int initialCapacity,
float loadFactor)
protected int getOccupiedWithData()
getOccupiedWithData in class AbstractMutableBooleanValuesMapprotected AbstractMutableBooleanValuesMap.SentinelValues getSentinelValues()
getSentinelValues in class AbstractMutableBooleanValuesMapprotected void setSentinelValuesNull()
setSentinelValuesNull in class AbstractMutableBooleanValuesMapprotected boolean getEmptyValue()
getEmptyValue in class AbstractMutableBooleanValuesMapprotected int getTableSize()
getTableSize in class AbstractMutableBooleanValuesMapprotected boolean getValueAtIndex(int index)
getValueAtIndex in class AbstractMutableBooleanValuesMapprotected boolean isNonSentinelAtIndex(int index)
isNonSentinelAtIndex in class AbstractMutableBooleanValuesMappublic com.gs.collections.api.map.primitive.MutableFloatBooleanMap asUnmodifiable()
asUnmodifiable in interface com.gs.collections.api.map.primitive.MutableFloatBooleanMappublic com.gs.collections.api.map.primitive.MutableFloatBooleanMap asSynchronized()
asSynchronized in interface com.gs.collections.api.map.primitive.MutableFloatBooleanMappublic com.gs.collections.api.map.primitive.ImmutableFloatBooleanMap toImmutable()
toImmutable in interface com.gs.collections.api.map.primitive.FloatBooleanMappublic static FloatBooleanHashMap newWithKeysValues(float key1, boolean value1)
public static FloatBooleanHashMap newWithKeysValues(float key1, boolean value1, float key2, boolean value2)
public static FloatBooleanHashMap newWithKeysValues(float key1, boolean value1, float key2, boolean value2, float key3, boolean value3)
public static FloatBooleanHashMap newWithKeysValues(float key1, boolean value1, float key2, boolean value2, float key3, boolean value3, float key4, boolean value4)
public FloatBooleanHashMap withKeyValue(float key1, boolean value1)
withKeyValue in interface com.gs.collections.api.map.primitive.MutableFloatBooleanMappublic FloatBooleanHashMap withKeysValues(float key1, boolean value1, float key2, boolean value2)
public FloatBooleanHashMap withKeysValues(float key1, boolean value1, float key2, boolean value2, float key3, boolean value3)
public FloatBooleanHashMap withKeysValues(float key1, boolean value1, float key2, boolean value2, float key3, boolean value3, float key4, boolean value4)
public FloatBooleanHashMap withoutKey(float key)
withoutKey in interface com.gs.collections.api.map.primitive.MutableFloatBooleanMappublic FloatBooleanHashMap withoutAllKeys(com.gs.collections.api.FloatIterable keys)
withoutAllKeys in interface com.gs.collections.api.map.primitive.MutableFloatBooleanMappublic void compact()
public void clear()
clear in interface com.gs.collections.api.map.primitive.MutableBooleanValuesMapclear in interface MutableFloatKeysMappublic void put(float key,
boolean value)
put in interface com.gs.collections.api.map.primitive.MutableFloatBooleanMappublic void putAll(com.gs.collections.api.map.primitive.FloatBooleanMap map)
putAll in interface com.gs.collections.api.map.primitive.MutableFloatBooleanMappublic boolean containsKey(float key)
containsKey in interface com.gs.collections.api.map.primitive.FloatBooleanMapcontainsKey in interface FloatKeysMappublic boolean containsValue(boolean value)
containsValue in interface com.gs.collections.api.map.primitive.BooleanValuesMappublic boolean get(float key)
get in interface com.gs.collections.api.map.primitive.FloatBooleanMappublic boolean getIfAbsent(float key,
boolean ifAbsent)
getIfAbsent in interface com.gs.collections.api.map.primitive.FloatBooleanMappublic boolean getOrThrow(float key)
getOrThrow in interface com.gs.collections.api.map.primitive.FloatBooleanMappublic boolean getIfAbsentPut(float key,
boolean value)
getIfAbsentPut in interface com.gs.collections.api.map.primitive.MutableFloatBooleanMappublic boolean getIfAbsentPut(float key,
com.gs.collections.api.block.function.primitive.BooleanFunction0 function)
getIfAbsentPut in interface com.gs.collections.api.map.primitive.MutableFloatBooleanMappublic <P> boolean getIfAbsentPutWith(float key,
com.gs.collections.api.block.function.primitive.BooleanFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface com.gs.collections.api.map.primitive.MutableFloatBooleanMappublic boolean getIfAbsentPutWithKey(float key,
com.gs.collections.api.block.function.primitive.FloatToBooleanFunction function)
getIfAbsentPutWithKey in interface com.gs.collections.api.map.primitive.MutableFloatBooleanMappublic boolean updateValue(float key,
boolean initialValueIfAbsent,
com.gs.collections.api.block.function.primitive.BooleanToBooleanFunction function)
updateValue in interface com.gs.collections.api.map.primitive.MutableFloatBooleanMappublic void removeKey(float key)
removeKey in interface com.gs.collections.api.map.primitive.MutableFloatBooleanMapremoveKey in interface MutableFloatKeysMappublic void remove(float key)
remove in interface com.gs.collections.api.map.primitive.MutableFloatBooleanMappublic boolean removeKeyIfAbsent(float key,
boolean value)
removeKeyIfAbsent in interface com.gs.collections.api.map.primitive.MutableFloatBooleanMappublic boolean equals(java.lang.Object obj)
com.gs.collections.api.map.primitive.FloatBooleanMapMap.equals(Object).equals in interface com.gs.collections.api.map.primitive.FloatBooleanMapequals in class java.lang.Objectpublic int hashCode()
com.gs.collections.api.map.primitive.FloatBooleanMapMap.hashCode().hashCode in interface com.gs.collections.api.map.primitive.FloatBooleanMaphashCode in class java.lang.Objectpublic java.lang.String toString()
com.gs.collections.api.PrimitiveIterabletoString in interface com.gs.collections.api.map.primitive.FloatBooleanMaptoString in interface com.gs.collections.api.PrimitiveIterabletoString in class AbstractBooleanIterablepublic com.gs.collections.api.iterator.MutableBooleanIterator booleanIterator()
booleanIterator in interface com.gs.collections.api.BooleanIterablebooleanIterator in interface com.gs.collections.api.map.primitive.MutableBooleanValuesMappublic void forEachKey(com.gs.collections.api.block.procedure.primitive.FloatProcedure procedure)
forEachKey in interface com.gs.collections.api.map.primitive.FloatBooleanMapforEachKey in interface FloatKeysMappublic void forEachKeyValue(com.gs.collections.api.block.procedure.primitive.FloatBooleanProcedure procedure)
forEachKeyValue in interface com.gs.collections.api.map.primitive.FloatBooleanMappublic FloatBooleanHashMap select(com.gs.collections.api.block.predicate.primitive.FloatBooleanPredicate predicate)
select in interface com.gs.collections.api.map.primitive.FloatBooleanMapselect in interface com.gs.collections.api.map.primitive.MutableFloatBooleanMappublic FloatBooleanHashMap reject(com.gs.collections.api.block.predicate.primitive.FloatBooleanPredicate predicate)
reject in interface com.gs.collections.api.map.primitive.FloatBooleanMapreject in interface com.gs.collections.api.map.primitive.MutableFloatBooleanMappublic com.gs.collections.api.LazyFloatIterable keysView()
keysView in interface com.gs.collections.api.map.primitive.FloatBooleanMappublic com.gs.collections.api.RichIterable<com.gs.collections.api.tuple.primitive.FloatBooleanPair> keyValuesView()
keyValuesView in interface com.gs.collections.api.map.primitive.FloatBooleanMappublic void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOExceptionpublic void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablejava.io.IOExceptionjava.lang.ClassNotFoundExceptionpublic com.gs.collections.api.set.primitive.MutableFloatSet keySet()
keySet in interface com.gs.collections.api.map.primitive.FloatBooleanMappublic com.gs.collections.api.collection.primitive.MutableBooleanCollection values()
values in interface com.gs.collections.api.map.primitive.BooleanValuesMap