public class FloatByteHashMap extends AbstractMutableByteValuesMap implements com.gs.collections.api.map.primitive.MutableFloatByteMap, java.io.Externalizable, MutableFloatKeysMap
AbstractMutableByteValuesMap.AbstractByteValuesCollection, AbstractMutableByteValuesMap.SentinelValues| Constructor and Description |
|---|
FloatByteHashMap() |
FloatByteHashMap(com.gs.collections.api.map.primitive.FloatByteMap map) |
FloatByteHashMap(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
byte |
addToValue(float key,
byte toBeAdded) |
com.gs.collections.api.map.primitive.MutableFloatByteMap |
asSynchronized() |
com.gs.collections.api.map.primitive.MutableFloatByteMap |
asUnmodifiable() |
com.gs.collections.api.iterator.MutableByteIterator |
byteIterator() |
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(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.FloatByteProcedure procedure) |
byte |
get(float key) |
protected byte |
getEmptyValue() |
byte |
getIfAbsent(float key,
byte ifAbsent) |
byte |
getIfAbsentPut(float key,
byte value) |
byte |
getIfAbsentPut(float key,
com.gs.collections.api.block.function.primitive.ByteFunction0 function) |
<P> byte |
getIfAbsentPutWith(float key,
com.gs.collections.api.block.function.primitive.ByteFunction<? super P> function,
P parameter) |
byte |
getIfAbsentPutWithKey(float key,
com.gs.collections.api.block.function.primitive.FloatToByteFunction function) |
protected int |
getOccupiedWithData() |
byte |
getOrThrow(float key) |
protected AbstractMutableByteValuesMap.SentinelValues |
getSentinelValues() |
protected int |
getTableSize() |
protected byte |
getValueAtIndex(int index) |
int |
hashCode()
Follows the same general contract as
Map.hashCode(). |
<V> V |
injectInto(V injectedValue,
com.gs.collections.api.block.function.primitive.ObjectByteToObjectFunction<? super V,? extends V> function) |
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.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(com.gs.collections.api.map.primitive.FloatByteMap map) |
void |
readExternal(java.io.ObjectInput in) |
FloatByteHashMap |
reject(com.gs.collections.api.block.predicate.primitive.FloatBytePredicate predicate) |
void |
remove(float key) |
void |
removeKey(float key) |
byte |
removeKeyIfAbsent(float key,
byte value) |
FloatByteHashMap |
select(com.gs.collections.api.block.predicate.primitive.FloatBytePredicate predicate) |
protected void |
setSentinelValuesNull() |
com.gs.collections.api.map.primitive.ImmutableFloatByteMap |
toImmutable() |
java.lang.String |
toString()
Returns a string representation of this PrimitiveIterable.
|
byte |
updateValue(float key,
byte initialValueIfAbsent,
com.gs.collections.api.block.function.primitive.ByteToByteFunction function) |
com.gs.collections.api.collection.primitive.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(com.gs.collections.api.FloatIterable keys) |
FloatByteHashMap |
withoutKey(float key) |
void |
writeExternal(java.io.ObjectOutput out) |
addEmptyKeyValue, addRemovedKeyValue, allSatisfy, anySatisfy, appendString, collect, contains, containsAll, containsValue, count, detectIfNone, each, forEach, forEachValue, isEmpty, max, min, noneSatisfy, notEmpty, reject, removeEmptyKey, removeRemovedKey, select, size, sum, toArrayappendString, appendString, asLazy, average, containsAll, makeString, makeString, makeString, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedListclone, finalize, getClass, notify, notifyAll, wait, wait, waitcollect, reject, selectcontainsValue, forEachValueallSatisfy, anySatisfy, asLazy, average, contains, containsAll, containsAll, count, detectIfNone, each, forEach, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedListappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, sizeisEmpty, notEmpty, sizepublic FloatByteHashMap()
public FloatByteHashMap(int initialCapacity)
public FloatByteHashMap(com.gs.collections.api.map.primitive.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)
protected int getOccupiedWithData()
getOccupiedWithData in class AbstractMutableByteValuesMapprotected AbstractMutableByteValuesMap.SentinelValues getSentinelValues()
getSentinelValues in class AbstractMutableByteValuesMapprotected void setSentinelValuesNull()
setSentinelValuesNull in class AbstractMutableByteValuesMapprotected byte getEmptyValue()
getEmptyValue in class AbstractMutableByteValuesMapprotected int getTableSize()
getTableSize in class AbstractMutableByteValuesMapprotected byte getValueAtIndex(int index)
getValueAtIndex in class AbstractMutableByteValuesMappublic boolean equals(java.lang.Object obj)
com.gs.collections.api.map.primitive.FloatByteMapMap.equals(Object).equals in interface com.gs.collections.api.map.primitive.FloatByteMapequals in class java.lang.Objectpublic int hashCode()
com.gs.collections.api.map.primitive.FloatByteMapMap.hashCode().hashCode in interface com.gs.collections.api.map.primitive.FloatByteMaphashCode in class java.lang.Objectpublic java.lang.String toString()
com.gs.collections.api.PrimitiveIterabletoString in interface com.gs.collections.api.map.primitive.FloatByteMaptoString in interface com.gs.collections.api.PrimitiveIterabletoString in class AbstractByteIterablepublic com.gs.collections.api.iterator.MutableByteIterator byteIterator()
byteIterator in interface com.gs.collections.api.ByteIterablebyteIterator in interface com.gs.collections.api.map.primitive.MutableByteValuesMappublic <V> V injectInto(V injectedValue,
com.gs.collections.api.block.function.primitive.ObjectByteToObjectFunction<? super V,? extends V> function)
injectInto in interface com.gs.collections.api.ByteIterablepublic void clear()
clear in interface com.gs.collections.api.map.primitive.MutableByteValuesMapclear in interface MutableFloatKeysMappublic void put(float key,
byte value)
put in interface com.gs.collections.api.map.primitive.MutableFloatByteMappublic void putAll(com.gs.collections.api.map.primitive.FloatByteMap map)
putAll in interface com.gs.collections.api.map.primitive.MutableFloatByteMappublic void removeKey(float key)
removeKey in interface com.gs.collections.api.map.primitive.MutableFloatByteMapremoveKey in interface MutableFloatKeysMappublic void remove(float key)
remove in interface com.gs.collections.api.map.primitive.MutableFloatByteMappublic byte removeKeyIfAbsent(float key,
byte value)
removeKeyIfAbsent in interface com.gs.collections.api.map.primitive.MutableFloatByteMappublic byte getIfAbsentPut(float key,
byte value)
getIfAbsentPut in interface com.gs.collections.api.map.primitive.MutableFloatByteMappublic byte getIfAbsentPut(float key,
com.gs.collections.api.block.function.primitive.ByteFunction0 function)
getIfAbsentPut in interface com.gs.collections.api.map.primitive.MutableFloatByteMappublic <P> byte getIfAbsentPutWith(float key,
com.gs.collections.api.block.function.primitive.ByteFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface com.gs.collections.api.map.primitive.MutableFloatByteMappublic byte getIfAbsentPutWithKey(float key,
com.gs.collections.api.block.function.primitive.FloatToByteFunction function)
getIfAbsentPutWithKey in interface com.gs.collections.api.map.primitive.MutableFloatByteMappublic byte addToValue(float key,
byte toBeAdded)
addToValue in interface com.gs.collections.api.map.primitive.MutableFloatByteMappublic byte updateValue(float key,
byte initialValueIfAbsent,
com.gs.collections.api.block.function.primitive.ByteToByteFunction function)
updateValue in interface com.gs.collections.api.map.primitive.MutableFloatByteMappublic FloatByteHashMap withKeyValue(float key1, byte value1)
withKeyValue in interface com.gs.collections.api.map.primitive.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 com.gs.collections.api.map.primitive.MutableFloatByteMappublic FloatByteHashMap withoutAllKeys(com.gs.collections.api.FloatIterable keys)
withoutAllKeys in interface com.gs.collections.api.map.primitive.MutableFloatByteMappublic com.gs.collections.api.map.primitive.MutableFloatByteMap asUnmodifiable()
asUnmodifiable in interface com.gs.collections.api.map.primitive.MutableFloatByteMappublic com.gs.collections.api.map.primitive.MutableFloatByteMap asSynchronized()
asSynchronized in interface com.gs.collections.api.map.primitive.MutableFloatByteMappublic com.gs.collections.api.map.primitive.ImmutableFloatByteMap toImmutable()
toImmutable in interface com.gs.collections.api.map.primitive.FloatByteMappublic byte get(float key)
get in interface com.gs.collections.api.map.primitive.FloatByteMappublic byte getIfAbsent(float key,
byte ifAbsent)
getIfAbsent in interface com.gs.collections.api.map.primitive.FloatByteMappublic byte getOrThrow(float key)
getOrThrow in interface com.gs.collections.api.map.primitive.FloatByteMappublic boolean containsKey(float key)
containsKey in interface com.gs.collections.api.map.primitive.FloatByteMapcontainsKey in interface FloatKeysMappublic void forEachKey(com.gs.collections.api.block.procedure.primitive.FloatProcedure procedure)
forEachKey in interface com.gs.collections.api.map.primitive.FloatByteMapforEachKey in interface FloatKeysMappublic void forEachKeyValue(com.gs.collections.api.block.procedure.primitive.FloatByteProcedure procedure)
forEachKeyValue in interface com.gs.collections.api.map.primitive.FloatByteMappublic com.gs.collections.api.LazyFloatIterable keysView()
keysView in interface com.gs.collections.api.map.primitive.FloatByteMappublic com.gs.collections.api.RichIterable<com.gs.collections.api.tuple.primitive.FloatBytePair> keyValuesView()
keyValuesView in interface com.gs.collections.api.map.primitive.FloatByteMappublic FloatByteHashMap select(com.gs.collections.api.block.predicate.primitive.FloatBytePredicate predicate)
select in interface com.gs.collections.api.map.primitive.FloatByteMapselect in interface com.gs.collections.api.map.primitive.MutableFloatByteMappublic FloatByteHashMap reject(com.gs.collections.api.block.predicate.primitive.FloatBytePredicate predicate)
reject in interface com.gs.collections.api.map.primitive.FloatByteMapreject in interface com.gs.collections.api.map.primitive.MutableFloatByteMappublic 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 void compact()
protected boolean isNonSentinelAtIndex(int index)
isNonSentinelAtIndex in class AbstractMutableByteValuesMappublic com.gs.collections.api.set.primitive.MutableFloatSet keySet()
keySet in interface com.gs.collections.api.map.primitive.FloatByteMappublic com.gs.collections.api.collection.primitive.MutableByteCollection values()
values in interface com.gs.collections.api.map.primitive.ByteValuesMap