public class FloatBooleanHashMap extends AbstractMutableBooleanValuesMap implements MutableFloatBooleanMap, MutableFloatKeysMap, Externalizable
| Constructor and Description |
|---|
FloatBooleanHashMap() |
FloatBooleanHashMap(FloatBooleanMap map) |
FloatBooleanHashMap(int initialCapacity) |
FloatBooleanHashMap(int initialCapacity,
float loadFactor)
Deprecated.
in 5.1.0.
|
| Modifier and Type | Method and Description |
|---|---|
MutableFloatBooleanMap |
asSynchronized() |
MutableFloatBooleanMap |
asUnmodifiable() |
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(Object obj)
Follows the same general contract as
Map.equals(Object). |
void |
forEachKey(FloatProcedure procedure) |
void |
forEachKeyValue(FloatBooleanProcedure procedure) |
boolean |
get(float key) |
boolean |
getIfAbsent(float key,
boolean ifAbsent) |
boolean |
getIfAbsentPut(float key,
boolean value) |
boolean |
getIfAbsentPut(float key,
BooleanFunction0 function) |
<P> boolean |
getIfAbsentPutWith(float key,
BooleanFunction<? super P> function,
P parameter) |
boolean |
getIfAbsentPutWithKey(float key,
FloatToBooleanFunction function) |
boolean |
getOrThrow(float key) |
int |
hashCode()
Follows the same general contract as
Map.hashCode(). |
MutableFloatSet |
keySet() |
LazyFloatIterable |
keysView() |
RichIterable<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(FloatBooleanMap map) |
void |
readExternal(ObjectInput in) |
FloatBooleanHashMap |
reject(FloatBooleanPredicate predicate) |
void |
remove(float key) |
void |
removeKey(float key) |
boolean |
removeKeyIfAbsent(float key,
boolean value) |
FloatBooleanHashMap |
select(FloatBooleanPredicate predicate) |
ImmutableFloatBooleanMap |
toImmutable() |
String |
toString()
Returns a string representation of this PrimitiveIterable.
|
boolean |
updateValue(float key,
boolean initialValueIfAbsent,
BooleanToBooleanFunction function) |
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(FloatIterable keys) |
FloatBooleanHashMap |
withoutKey(float key) |
void |
writeExternal(ObjectOutput out) |
allSatisfy, anySatisfy, appendString, collect, contains, containsAll, count, detectIfNone, each, forEach, forEachValue, injectInto, isEmpty, noneSatisfy, notEmpty, reject, select, size, toArrayasLazy, containsAll, toBag, toList, toSetcollect, reject, selectforEachValueallSatisfy, 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(FloatBooleanMap map)
@Deprecated public FloatBooleanHashMap(int initialCapacity, float loadFactor)
public MutableFloatBooleanMap asUnmodifiable()
asUnmodifiable in interface MutableFloatBooleanMappublic MutableFloatBooleanMap asSynchronized()
asSynchronized in interface MutableFloatBooleanMappublic ImmutableFloatBooleanMap toImmutable()
toImmutable in interface 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 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 MutableFloatBooleanMappublic FloatBooleanHashMap withoutAllKeys(FloatIterable keys)
withoutAllKeys in interface MutableFloatBooleanMappublic void compact()
public void clear()
clear in interface MutableBooleanValuesMapclear in interface MutableFloatKeysMappublic void put(float key,
boolean value)
put in interface MutableFloatBooleanMappublic void putAll(FloatBooleanMap map)
putAll in interface MutableFloatBooleanMappublic boolean containsKey(float key)
containsKey in interface FloatBooleanMapcontainsKey in interface FloatKeysMappublic boolean containsValue(boolean value)
containsValue in interface BooleanValuesMappublic boolean get(float key)
get in interface FloatBooleanMappublic boolean getIfAbsent(float key,
boolean ifAbsent)
getIfAbsent in interface FloatBooleanMappublic boolean getOrThrow(float key)
getOrThrow in interface FloatBooleanMappublic boolean getIfAbsentPut(float key,
boolean value)
getIfAbsentPut in interface MutableFloatBooleanMappublic boolean getIfAbsentPut(float key,
BooleanFunction0 function)
getIfAbsentPut in interface MutableFloatBooleanMappublic <P> boolean getIfAbsentPutWith(float key,
BooleanFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface MutableFloatBooleanMappublic boolean getIfAbsentPutWithKey(float key,
FloatToBooleanFunction function)
getIfAbsentPutWithKey in interface MutableFloatBooleanMappublic boolean updateValue(float key,
boolean initialValueIfAbsent,
BooleanToBooleanFunction function)
updateValue in interface MutableFloatBooleanMappublic void removeKey(float key)
removeKey in interface MutableFloatBooleanMapremoveKey in interface MutableFloatKeysMappublic void remove(float key)
remove in interface MutableFloatBooleanMappublic boolean removeKeyIfAbsent(float key,
boolean value)
removeKeyIfAbsent in interface MutableFloatBooleanMappublic boolean equals(Object obj)
FloatBooleanMapMap.equals(Object).equals in interface FloatBooleanMapequals in class Objectpublic int hashCode()
FloatBooleanMapMap.hashCode().hashCode in interface FloatBooleanMaphashCode in class Objectpublic String toString()
PrimitiveIterabletoString in interface FloatBooleanMaptoString in interface PrimitiveIterabletoString in class AbstractBooleanIterablepublic MutableBooleanIterator booleanIterator()
booleanIterator in interface BooleanIterablebooleanIterator in interface MutableBooleanValuesMappublic void forEachKey(FloatProcedure procedure)
forEachKey in interface FloatBooleanMapforEachKey in interface FloatKeysMappublic void forEachKeyValue(FloatBooleanProcedure procedure)
forEachKeyValue in interface FloatBooleanMappublic FloatBooleanHashMap select(FloatBooleanPredicate predicate)
select in interface FloatBooleanMapselect in interface MutableFloatBooleanMappublic FloatBooleanHashMap reject(FloatBooleanPredicate predicate)
reject in interface FloatBooleanMapreject in interface MutableFloatBooleanMappublic LazyFloatIterable keysView()
keysView in interface FloatBooleanMappublic RichIterable<FloatBooleanPair> keyValuesView()
keyValuesView in interface FloatBooleanMappublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic MutableFloatSet keySet()
keySet in interface FloatBooleanMappublic MutableBooleanCollection values()
values in interface BooleanValuesMapCopyright © 2004–2016. All rights reserved.