java.io.Externalizable, java.io.Serializable, BooleanIterable, BooleanValuesMap, FloatBooleanMap, MutableBooleanValuesMap, MutableFloatBooleanMap, PrimitiveIterable, MutableFloatKeysMap, FloatKeysMappublic class FloatBooleanHashMap extends AbstractMutableBooleanValuesMap implements MutableFloatBooleanMap, MutableFloatKeysMap, java.io.Externalizable
| Constructor | Description |
|---|---|
FloatBooleanHashMap() |
|
FloatBooleanHashMap(int initialCapacity) |
|
FloatBooleanHashMap(int initialCapacity,
float loadFactor) |
Deprecated.
in 5.1.0.
|
FloatBooleanHashMap(FloatBooleanMap map) |
| Modifier and Type | Method | Description |
|---|---|---|
MutableFloatBooleanMap |
asSynchronized() |
|
MutableFloatBooleanMap |
asUnmodifiable() |
|
MutableBooleanIterator |
booleanIterator() |
Returns a primitive iterator that can be used to iterate over the BooleanIterable in an
imperative style.
|
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(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(java.io.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() |
|
java.lang.String |
toString() |
Returns a string with the elements of this iterable separated by commas with spaces and
enclosed in square brackets.
|
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(java.io.ObjectOutput out) |
asLazy, containsAll, toBag, toList, toSetallSatisfy, anySatisfy, appendString, collect, contains, containsAll, count, detectIfNone, each, forEach, forEachValue, injectInto, isEmpty, noneSatisfy, notEmpty, reject, select, size, toArrayallSatisfy, anySatisfy, asLazy, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, forEach, injectInto, noneSatisfy, reject, select, toArray, toBag, toList, toSetforEachValue, tapisEmpty, notEmpty, sizecollect, reject, selectappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, 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(java.lang.Object obj)
FloatBooleanMapMap.equals(Object).equals in interface FloatBooleanMapequals in class java.lang.Objectpublic int hashCode()
FloatBooleanMapMap.hashCode().hashCode in interface FloatBooleanMaphashCode in class java.lang.Objectpublic java.lang.String toString()
PrimitiveIterable
Assert.assertEquals("[]", IntLists.mutable.empty().toString());
Assert.assertEquals("[1]", IntLists.mutable.with(1).toString());
Assert.assertEquals("[1, 2, 3]", IntLists.mutable.with(1, 2, 3).toString());
toString in interface FloatBooleanMaptoString in interface PrimitiveIterabletoString in class AbstractBooleanIterableAbstractCollection.toString()public MutableBooleanIterator booleanIterator()
BooleanIterablebooleanIterator 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(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 MutableFloatSet keySet()
keySet in interface FloatBooleanMappublic MutableBooleanCollection values()
values in interface BooleanValuesMapCopyright © 2004–2017. All rights reserved.