Externalizable, Serializable, ByteIterable, ByteValuesMap, FloatByteMap, MutableByteValuesMap, MutableFloatByteMap, PrimitiveIterable, MutableFloatKeysMap, FloatKeysMappublic class FloatByteHashMap extends AbstractMutableByteValuesMap implements MutableFloatByteMap, Externalizable, MutableFloatKeysMap
| Constructor | Description |
|---|---|
FloatByteHashMap() |
|
FloatByteHashMap(int initialCapacity) |
|
FloatByteHashMap(FloatByteMap map) |
| Modifier and Type | Method | Description |
|---|---|---|
byte |
addToValue(float key,
byte toBeAdded) |
|
MutableFloatByteMap |
asSynchronized() |
|
MutableFloatByteMap |
asUnmodifiable() |
|
MutableByteIterator |
byteIterator() |
Returns a primitive iterator that can be used to iterate over the ByteIterable 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 |
equals(Object obj) |
Follows the same general contract as
Map.equals(Object). |
MutableByteFloatMap |
flipUniqueValues() |
Return the ByteFloatMap that is obtained by flipping the direction of this map and making the associations
from value to key.
|
void |
forEachKey(FloatProcedure procedure) |
|
void |
forEachKeyValue(FloatByteProcedure procedure) |
|
byte |
get(float key) |
|
byte |
getIfAbsent(float key,
byte ifAbsent) |
|
byte |
getIfAbsentPut(float key,
byte value) |
|
byte |
getIfAbsentPut(float key,
ByteFunction0 function) |
|
<P> byte |
getIfAbsentPutWith(float key,
ByteFunction<? super P> function,
P parameter) |
|
byte |
getIfAbsentPutWithKey(float key,
FloatToByteFunction function) |
|
byte |
getOrThrow(float key) |
|
int |
hashCode() |
Follows the same general contract as
Map.hashCode(). |
<V> V |
injectInto(V injectedValue,
ObjectByteToObjectFunction<? super V,? extends V> function) |
|
MutableFloatSet |
keySet() |
|
LazyFloatIterable |
keysView() |
|
RichIterable<FloatBytePair> |
keyValuesView() |
|
static FloatByteHashMap |
newWithKeysValues(float key1,
byte value1) |
|
static FloatByteHashMap |
newWithKeysValues(float key1,
byte value1,
float key2,
byte value2) |
|
static FloatByteHashMap |
newWithKeysValues(float key1,
byte value1,
float key2,
byte value2,
float key3,
byte value3) |
|
static FloatByteHashMap |
newWithKeysValues(float key1,
byte value1,
float key2,
byte value2,
float key3,
byte value3,
float key4,
byte value4) |
|
void |
put(float key,
byte value) |
|
void |
putAll(FloatByteMap map) |
|
void |
readExternal(ObjectInput in) |
|
FloatByteHashMap |
reject(FloatBytePredicate predicate) |
|
void |
remove(float key) |
|
void |
removeKey(float key) |
|
byte |
removeKeyIfAbsent(float key,
byte value) |
|
FloatByteHashMap |
select(FloatBytePredicate predicate) |
|
ImmutableFloatByteMap |
toImmutable() |
|
String |
toString() |
Returns a string with the elements of this iterable separated by commas with spaces and
enclosed in square brackets.
|
byte |
updateValue(float key,
byte initialValueIfAbsent,
ByteToByteFunction function) |
|
void |
updateValues(FloatByteToByteFunction function) |
Updates the values in-place.
|
MutableByteCollection |
values() |
|
FloatByteHashMap |
withKeysValues(float key1,
byte value1,
float key2,
byte value2) |
|
FloatByteHashMap |
withKeysValues(float key1,
byte value1,
float key2,
byte value2,
float key3,
byte value3) |
|
FloatByteHashMap |
withKeysValues(float key1,
byte value1,
float key2,
byte value2,
float key3,
byte value3,
float key4,
byte value4) |
|
FloatByteHashMap |
withKeyValue(float key1,
byte value1) |
|
FloatByteHashMap |
withoutAllKeys(FloatIterable keys) |
|
FloatByteHashMap |
withoutKey(float key) |
|
void |
writeExternal(ObjectOutput out) |
asLazy, average, containsAll, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedListallSatisfy, anySatisfy, appendString, chunk, collect, contains, containsAll, containsValue, count, detectIfNone, each, forEach, forEachValue, isEmpty, max, min, noneSatisfy, notEmpty, reject, select, size, sum, toArrayallSatisfy, anySatisfy, asLazy, average, averageIfEmpty, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, forEach, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedListcontainsValue, forEachValue, tapisEmpty, notEmpty, sizecollect, reject, selectputPair, withAllKeyValuesappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, sizepublic FloatByteHashMap()
public FloatByteHashMap(int initialCapacity)
public FloatByteHashMap(FloatByteMap map)
public static FloatByteHashMap newWithKeysValues(float key1, byte value1)
public static FloatByteHashMap newWithKeysValues(float key1, byte value1, float key2, byte value2)
public static FloatByteHashMap newWithKeysValues(float key1, byte value1, float key2, byte value2, float key3, byte value3)
public static FloatByteHashMap newWithKeysValues(float key1, byte value1, float key2, byte value2, float key3, byte value3, float key4, byte value4)
public boolean equals(Object obj)
FloatByteMapMap.equals(Object).equals in interface FloatByteMapequals in class Objectpublic int hashCode()
FloatByteMapMap.hashCode().hashCode in interface FloatByteMaphashCode in class Objectpublic 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 FloatByteMaptoString in interface PrimitiveIterabletoString in class AbstractByteIterableAbstractCollection.toString()public MutableByteIterator byteIterator()
ByteIterablebyteIterator in interface ByteIterablebyteIterator in interface MutableByteValuesMappublic <V> V injectInto(V injectedValue,
ObjectByteToObjectFunction<? super V,? extends V> function)
injectInto in interface ByteIterablepublic void clear()
clear in interface MutableByteValuesMapclear in interface MutableFloatKeysMappublic void put(float key,
byte value)
put in interface MutableFloatByteMappublic void putAll(FloatByteMap map)
putAll in interface MutableFloatByteMappublic void updateValues(FloatByteToByteFunction function)
MutableFloatByteMapupdateValues in interface MutableFloatByteMapfunction - that takes a key and its value and that returns a new value for this keypublic void removeKey(float key)
removeKey in interface MutableFloatByteMapremoveKey in interface MutableFloatKeysMappublic void remove(float key)
remove in interface MutableFloatByteMappublic byte removeKeyIfAbsent(float key,
byte value)
removeKeyIfAbsent in interface MutableFloatByteMappublic byte getIfAbsentPut(float key,
byte value)
getIfAbsentPut in interface MutableFloatByteMappublic byte getIfAbsentPut(float key,
ByteFunction0 function)
getIfAbsentPut in interface MutableFloatByteMappublic <P> byte getIfAbsentPutWith(float key,
ByteFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface MutableFloatByteMappublic byte getIfAbsentPutWithKey(float key,
FloatToByteFunction function)
getIfAbsentPutWithKey in interface MutableFloatByteMappublic byte addToValue(float key,
byte toBeAdded)
addToValue in interface MutableFloatByteMappublic byte updateValue(float key,
byte initialValueIfAbsent,
ByteToByteFunction function)
updateValue in interface MutableFloatByteMappublic FloatByteHashMap withKeyValue(float key1, byte value1)
withKeyValue in interface MutableFloatByteMappublic FloatByteHashMap withKeysValues(float key1, byte value1, float key2, byte value2)
public FloatByteHashMap withKeysValues(float key1, byte value1, float key2, byte value2, float key3, byte value3)
public FloatByteHashMap withKeysValues(float key1, byte value1, float key2, byte value2, float key3, byte value3, float key4, byte value4)
public FloatByteHashMap withoutKey(float key)
withoutKey in interface MutableFloatByteMappublic FloatByteHashMap withoutAllKeys(FloatIterable keys)
withoutAllKeys in interface MutableFloatByteMappublic MutableFloatByteMap asUnmodifiable()
asUnmodifiable in interface MutableFloatByteMappublic MutableFloatByteMap asSynchronized()
asSynchronized in interface MutableFloatByteMappublic ImmutableFloatByteMap toImmutable()
toImmutable in interface FloatByteMappublic byte get(float key)
get in interface FloatByteMappublic byte getIfAbsent(float key,
byte ifAbsent)
getIfAbsent in interface FloatByteMappublic byte getOrThrow(float key)
getOrThrow in interface FloatByteMappublic boolean containsKey(float key)
containsKey in interface FloatByteMapcontainsKey in interface FloatKeysMappublic void forEachKey(FloatProcedure procedure)
forEachKey in interface FloatByteMapforEachKey in interface FloatKeysMappublic void forEachKeyValue(FloatByteProcedure procedure)
forEachKeyValue in interface FloatByteMappublic LazyFloatIterable keysView()
keysView in interface FloatByteMappublic RichIterable<FloatBytePair> keyValuesView()
keyValuesView in interface FloatByteMappublic MutableByteFloatMap flipUniqueValues()
FloatByteMapflipUniqueValues in interface FloatByteMapflipUniqueValues in interface MutableFloatByteMappublic FloatByteHashMap select(FloatBytePredicate predicate)
select in interface FloatByteMapselect in interface MutableFloatByteMappublic FloatByteHashMap reject(FloatBytePredicate predicate)
reject in interface FloatByteMapreject in interface MutableFloatByteMappublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic void compact()
public MutableFloatSet keySet()
keySet in interface FloatByteMappublic MutableByteCollection values()
values in interface ByteValuesMapCopyright © 2004–2019. All rights reserved.