public class FloatIntHashMap extends AbstractMutableIntValuesMap implements org.eclipse.collections.api.map.primitive.MutableFloatIntMap, Externalizable, MutableFloatKeysMap
| Constructor and Description |
|---|
FloatIntHashMap() |
FloatIntHashMap(org.eclipse.collections.api.map.primitive.FloatIntMap map) |
FloatIntHashMap(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
int |
addToValue(float key,
int toBeAdded) |
org.eclipse.collections.api.map.primitive.MutableFloatIntMap |
asSynchronized() |
org.eclipse.collections.api.map.primitive.MutableFloatIntMap |
asUnmodifiable() |
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) |
void |
forEachKey(org.eclipse.collections.api.block.procedure.primitive.FloatProcedure procedure) |
void |
forEachKeyValue(org.eclipse.collections.api.block.procedure.primitive.FloatIntProcedure procedure) |
int |
get(float key) |
int |
getIfAbsent(float key,
int ifAbsent) |
int |
getIfAbsentPut(float key,
int value) |
int |
getIfAbsentPut(float key,
org.eclipse.collections.api.block.function.primitive.IntFunction0 function) |
<P> int |
getIfAbsentPutWith(float key,
org.eclipse.collections.api.block.function.primitive.IntFunction<? super P> function,
P parameter) |
int |
getIfAbsentPutWithKey(float key,
org.eclipse.collections.api.block.function.primitive.FloatToIntFunction function) |
int |
getOrThrow(float key) |
int |
hashCode() |
<V> V |
injectInto(V injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectIntToObjectFunction<? super V,? extends V> function) |
org.eclipse.collections.api.iterator.MutableIntIterator |
intIterator() |
org.eclipse.collections.api.set.primitive.MutableFloatSet |
keySet() |
org.eclipse.collections.api.LazyFloatIterable |
keysView() |
org.eclipse.collections.api.RichIterable<org.eclipse.collections.api.tuple.primitive.FloatIntPair> |
keyValuesView() |
static FloatIntHashMap |
newWithKeysValues(float key1,
int value1) |
static FloatIntHashMap |
newWithKeysValues(float key1,
int value1,
float key2,
int value2) |
static FloatIntHashMap |
newWithKeysValues(float key1,
int value1,
float key2,
int value2,
float key3,
int value3) |
static FloatIntHashMap |
newWithKeysValues(float key1,
int value1,
float key2,
int value2,
float key3,
int value3,
float key4,
int value4) |
void |
put(float key,
int value) |
void |
putAll(org.eclipse.collections.api.map.primitive.FloatIntMap map) |
void |
readExternal(ObjectInput in) |
FloatIntHashMap |
reject(org.eclipse.collections.api.block.predicate.primitive.FloatIntPredicate predicate) |
void |
remove(float key) |
void |
removeKey(float key) |
int |
removeKeyIfAbsent(float key,
int value) |
FloatIntHashMap |
select(org.eclipse.collections.api.block.predicate.primitive.FloatIntPredicate predicate) |
org.eclipse.collections.api.map.primitive.ImmutableFloatIntMap |
toImmutable() |
String |
toString() |
int |
updateValue(float key,
int initialValueIfAbsent,
org.eclipse.collections.api.block.function.primitive.IntToIntFunction function) |
org.eclipse.collections.api.collection.primitive.MutableIntCollection |
values() |
FloatIntHashMap |
withKeysValues(float key1,
int value1,
float key2,
int value2) |
FloatIntHashMap |
withKeysValues(float key1,
int value1,
float key2,
int value2,
float key3,
int value3) |
FloatIntHashMap |
withKeysValues(float key1,
int value1,
float key2,
int value2,
float key3,
int value3,
float key4,
int value4) |
FloatIntHashMap |
withKeyValue(float key1,
int value1) |
FloatIntHashMap |
withoutAllKeys(org.eclipse.collections.api.FloatIterable keys) |
FloatIntHashMap |
withoutKey(float key) |
void |
writeExternal(ObjectOutput out) |
allSatisfy, anySatisfy, appendString, collect, contains, containsAll, containsValue, count, detectIfNone, each, forEach, forEachValue, isEmpty, max, min, noneSatisfy, notEmpty, reject, select, size, sum, toArrayappendString, appendString, asLazy, average, containsAll, makeString, makeString, makeString, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedListcollect, 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 FloatIntHashMap()
public FloatIntHashMap(int initialCapacity)
public FloatIntHashMap(org.eclipse.collections.api.map.primitive.FloatIntMap map)
public static FloatIntHashMap newWithKeysValues(float key1, int value1)
public static FloatIntHashMap newWithKeysValues(float key1, int value1, float key2, int value2)
public static FloatIntHashMap newWithKeysValues(float key1, int value1, float key2, int value2, float key3, int value3)
public static FloatIntHashMap newWithKeysValues(float key1, int value1, float key2, int value2, float key3, int value3, float key4, int value4)
public boolean equals(Object obj)
public int hashCode()
public String toString()
toString in interface org.eclipse.collections.api.map.primitive.FloatIntMaptoString in interface org.eclipse.collections.api.PrimitiveIterabletoString in class AbstractIntIterablepublic org.eclipse.collections.api.iterator.MutableIntIterator intIterator()
intIterator in interface org.eclipse.collections.api.IntIterableintIterator in interface org.eclipse.collections.api.map.primitive.MutableIntValuesMappublic <V> V injectInto(V injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectIntToObjectFunction<? super V,? extends V> function)
injectInto in interface org.eclipse.collections.api.IntIterablepublic void clear()
clear in interface org.eclipse.collections.api.map.primitive.MutableIntValuesMapclear in interface MutableFloatKeysMappublic void put(float key,
int value)
put in interface org.eclipse.collections.api.map.primitive.MutableFloatIntMappublic void putAll(org.eclipse.collections.api.map.primitive.FloatIntMap map)
putAll in interface org.eclipse.collections.api.map.primitive.MutableFloatIntMappublic void removeKey(float key)
removeKey in interface org.eclipse.collections.api.map.primitive.MutableFloatIntMapremoveKey in interface MutableFloatKeysMappublic void remove(float key)
remove in interface org.eclipse.collections.api.map.primitive.MutableFloatIntMappublic int removeKeyIfAbsent(float key,
int value)
removeKeyIfAbsent in interface org.eclipse.collections.api.map.primitive.MutableFloatIntMappublic int getIfAbsentPut(float key,
int value)
getIfAbsentPut in interface org.eclipse.collections.api.map.primitive.MutableFloatIntMappublic int getIfAbsentPut(float key,
org.eclipse.collections.api.block.function.primitive.IntFunction0 function)
getIfAbsentPut in interface org.eclipse.collections.api.map.primitive.MutableFloatIntMappublic <P> int getIfAbsentPutWith(float key,
org.eclipse.collections.api.block.function.primitive.IntFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface org.eclipse.collections.api.map.primitive.MutableFloatIntMappublic int getIfAbsentPutWithKey(float key,
org.eclipse.collections.api.block.function.primitive.FloatToIntFunction function)
getIfAbsentPutWithKey in interface org.eclipse.collections.api.map.primitive.MutableFloatIntMappublic int addToValue(float key,
int toBeAdded)
addToValue in interface org.eclipse.collections.api.map.primitive.MutableFloatIntMappublic int updateValue(float key,
int initialValueIfAbsent,
org.eclipse.collections.api.block.function.primitive.IntToIntFunction function)
updateValue in interface org.eclipse.collections.api.map.primitive.MutableFloatIntMappublic FloatIntHashMap withKeyValue(float key1, int value1)
withKeyValue in interface org.eclipse.collections.api.map.primitive.MutableFloatIntMappublic FloatIntHashMap withKeysValues(float key1, int value1, float key2, int value2)
public FloatIntHashMap withKeysValues(float key1, int value1, float key2, int value2, float key3, int value3)
public FloatIntHashMap withKeysValues(float key1, int value1, float key2, int value2, float key3, int value3, float key4, int value4)
public FloatIntHashMap withoutKey(float key)
withoutKey in interface org.eclipse.collections.api.map.primitive.MutableFloatIntMappublic FloatIntHashMap withoutAllKeys(org.eclipse.collections.api.FloatIterable keys)
withoutAllKeys in interface org.eclipse.collections.api.map.primitive.MutableFloatIntMappublic org.eclipse.collections.api.map.primitive.MutableFloatIntMap asUnmodifiable()
asUnmodifiable in interface org.eclipse.collections.api.map.primitive.MutableFloatIntMappublic org.eclipse.collections.api.map.primitive.MutableFloatIntMap asSynchronized()
asSynchronized in interface org.eclipse.collections.api.map.primitive.MutableFloatIntMappublic org.eclipse.collections.api.map.primitive.ImmutableFloatIntMap toImmutable()
toImmutable in interface org.eclipse.collections.api.map.primitive.FloatIntMappublic int get(float key)
get in interface org.eclipse.collections.api.map.primitive.FloatIntMappublic int getIfAbsent(float key,
int ifAbsent)
getIfAbsent in interface org.eclipse.collections.api.map.primitive.FloatIntMappublic int getOrThrow(float key)
getOrThrow in interface org.eclipse.collections.api.map.primitive.FloatIntMappublic boolean containsKey(float key)
containsKey in interface org.eclipse.collections.api.map.primitive.FloatIntMapcontainsKey in interface FloatKeysMappublic void forEachKey(org.eclipse.collections.api.block.procedure.primitive.FloatProcedure procedure)
forEachKey in interface org.eclipse.collections.api.map.primitive.FloatIntMapforEachKey in interface FloatKeysMappublic void forEachKeyValue(org.eclipse.collections.api.block.procedure.primitive.FloatIntProcedure procedure)
forEachKeyValue in interface org.eclipse.collections.api.map.primitive.FloatIntMappublic org.eclipse.collections.api.LazyFloatIterable keysView()
keysView in interface org.eclipse.collections.api.map.primitive.FloatIntMappublic org.eclipse.collections.api.RichIterable<org.eclipse.collections.api.tuple.primitive.FloatIntPair> keyValuesView()
keyValuesView in interface org.eclipse.collections.api.map.primitive.FloatIntMappublic FloatIntHashMap select(org.eclipse.collections.api.block.predicate.primitive.FloatIntPredicate predicate)
select in interface org.eclipse.collections.api.map.primitive.FloatIntMapselect in interface org.eclipse.collections.api.map.primitive.MutableFloatIntMappublic FloatIntHashMap reject(org.eclipse.collections.api.block.predicate.primitive.FloatIntPredicate predicate)
reject in interface org.eclipse.collections.api.map.primitive.FloatIntMapreject in interface org.eclipse.collections.api.map.primitive.MutableFloatIntMappublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic void compact()
public org.eclipse.collections.api.set.primitive.MutableFloatSet keySet()
keySet in interface org.eclipse.collections.api.map.primitive.FloatIntMappublic org.eclipse.collections.api.collection.primitive.MutableIntCollection values()
values in interface org.eclipse.collections.api.map.primitive.IntValuesMapCopyright © 2004–2018. All rights reserved.