public class IntFloatHashMap extends AbstractMutableFloatValuesMap implements org.eclipse.collections.api.map.primitive.MutableIntFloatMap, Externalizable, MutableIntKeysMap
| Constructor and Description |
|---|
IntFloatHashMap() |
IntFloatHashMap(int initialCapacity) |
IntFloatHashMap(org.eclipse.collections.api.map.primitive.IntFloatMap map) |
| Modifier and Type | Method and Description |
|---|---|
float |
addToValue(int key,
float toBeAdded) |
org.eclipse.collections.api.map.primitive.MutableIntFloatMap |
asSynchronized() |
org.eclipse.collections.api.map.primitive.MutableIntFloatMap |
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(int key) |
boolean |
equals(Object obj) |
org.eclipse.collections.api.iterator.MutableFloatIterator |
floatIterator() |
void |
forEachKey(org.eclipse.collections.api.block.procedure.primitive.IntProcedure procedure) |
void |
forEachKeyValue(org.eclipse.collections.api.block.procedure.primitive.IntFloatProcedure procedure) |
float |
get(int key) |
float |
getIfAbsent(int key,
float ifAbsent) |
float |
getIfAbsentPut(int key,
float value) |
float |
getIfAbsentPut(int key,
org.eclipse.collections.api.block.function.primitive.FloatFunction0 function) |
<P> float |
getIfAbsentPutWith(int key,
org.eclipse.collections.api.block.function.primitive.FloatFunction<? super P> function,
P parameter) |
float |
getIfAbsentPutWithKey(int key,
org.eclipse.collections.api.block.function.primitive.IntToFloatFunction function) |
float |
getOrThrow(int key) |
int |
hashCode() |
<V> V |
injectInto(V injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectFloatToObjectFunction<? super V,? extends V> function) |
org.eclipse.collections.api.set.primitive.MutableIntSet |
keySet() |
org.eclipse.collections.api.LazyIntIterable |
keysView() |
org.eclipse.collections.api.RichIterable<org.eclipse.collections.api.tuple.primitive.IntFloatPair> |
keyValuesView() |
static IntFloatHashMap |
newWithKeysValues(int key1,
float value1) |
static IntFloatHashMap |
newWithKeysValues(int key1,
float value1,
int key2,
float value2) |
static IntFloatHashMap |
newWithKeysValues(int key1,
float value1,
int key2,
float value2,
int key3,
float value3) |
static IntFloatHashMap |
newWithKeysValues(int key1,
float value1,
int key2,
float value2,
int key3,
float value3,
int key4,
float value4) |
void |
put(int key,
float value) |
void |
putAll(org.eclipse.collections.api.map.primitive.IntFloatMap map) |
void |
readExternal(ObjectInput in) |
IntFloatHashMap |
reject(org.eclipse.collections.api.block.predicate.primitive.IntFloatPredicate predicate) |
void |
remove(int key) |
void |
removeKey(int key) |
float |
removeKeyIfAbsent(int key,
float value) |
IntFloatHashMap |
select(org.eclipse.collections.api.block.predicate.primitive.IntFloatPredicate predicate) |
org.eclipse.collections.api.map.primitive.ImmutableIntFloatMap |
toImmutable() |
String |
toString() |
float |
updateValue(int key,
float initialValueIfAbsent,
org.eclipse.collections.api.block.function.primitive.FloatToFloatFunction function) |
org.eclipse.collections.api.collection.primitive.MutableFloatCollection |
values() |
IntFloatHashMap |
withKeysValues(int key1,
float value1,
int key2,
float value2) |
IntFloatHashMap |
withKeysValues(int key1,
float value1,
int key2,
float value2,
int key3,
float value3) |
IntFloatHashMap |
withKeysValues(int key1,
float value1,
int key2,
float value2,
int key3,
float value3,
int key4,
float value4) |
IntFloatHashMap |
withKeyValue(int key1,
float value1) |
IntFloatHashMap |
withoutAllKeys(org.eclipse.collections.api.IntIterable keys) |
IntFloatHashMap |
withoutKey(int 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 IntFloatHashMap()
public IntFloatHashMap(int initialCapacity)
public IntFloatHashMap(org.eclipse.collections.api.map.primitive.IntFloatMap map)
public static IntFloatHashMap newWithKeysValues(int key1, float value1)
public static IntFloatHashMap newWithKeysValues(int key1, float value1, int key2, float value2)
public static IntFloatHashMap newWithKeysValues(int key1, float value1, int key2, float value2, int key3, float value3)
public static IntFloatHashMap newWithKeysValues(int key1, float value1, int key2, float value2, int key3, float value3, int key4, float value4)
public boolean equals(Object obj)
public int hashCode()
public String toString()
toString in interface org.eclipse.collections.api.map.primitive.IntFloatMaptoString in interface org.eclipse.collections.api.PrimitiveIterabletoString in class AbstractFloatIterablepublic org.eclipse.collections.api.iterator.MutableFloatIterator floatIterator()
floatIterator in interface org.eclipse.collections.api.FloatIterablefloatIterator in interface org.eclipse.collections.api.map.primitive.MutableFloatValuesMappublic <V> V injectInto(V injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectFloatToObjectFunction<? super V,? extends V> function)
injectInto in interface org.eclipse.collections.api.FloatIterablepublic void clear()
clear in interface org.eclipse.collections.api.map.primitive.MutableFloatValuesMapclear in interface MutableIntKeysMappublic void put(int key,
float value)
put in interface org.eclipse.collections.api.map.primitive.MutableIntFloatMappublic void putAll(org.eclipse.collections.api.map.primitive.IntFloatMap map)
putAll in interface org.eclipse.collections.api.map.primitive.MutableIntFloatMappublic void removeKey(int key)
removeKey in interface org.eclipse.collections.api.map.primitive.MutableIntFloatMapremoveKey in interface MutableIntKeysMappublic void remove(int key)
remove in interface org.eclipse.collections.api.map.primitive.MutableIntFloatMappublic float removeKeyIfAbsent(int key,
float value)
removeKeyIfAbsent in interface org.eclipse.collections.api.map.primitive.MutableIntFloatMappublic float getIfAbsentPut(int key,
float value)
getIfAbsentPut in interface org.eclipse.collections.api.map.primitive.MutableIntFloatMappublic float getIfAbsentPut(int key,
org.eclipse.collections.api.block.function.primitive.FloatFunction0 function)
getIfAbsentPut in interface org.eclipse.collections.api.map.primitive.MutableIntFloatMappublic <P> float getIfAbsentPutWith(int key,
org.eclipse.collections.api.block.function.primitive.FloatFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface org.eclipse.collections.api.map.primitive.MutableIntFloatMappublic float getIfAbsentPutWithKey(int key,
org.eclipse.collections.api.block.function.primitive.IntToFloatFunction function)
getIfAbsentPutWithKey in interface org.eclipse.collections.api.map.primitive.MutableIntFloatMappublic float addToValue(int key,
float toBeAdded)
addToValue in interface org.eclipse.collections.api.map.primitive.MutableIntFloatMappublic float updateValue(int key,
float initialValueIfAbsent,
org.eclipse.collections.api.block.function.primitive.FloatToFloatFunction function)
updateValue in interface org.eclipse.collections.api.map.primitive.MutableIntFloatMappublic IntFloatHashMap withKeyValue(int key1, float value1)
withKeyValue in interface org.eclipse.collections.api.map.primitive.MutableIntFloatMappublic IntFloatHashMap withKeysValues(int key1, float value1, int key2, float value2)
public IntFloatHashMap withKeysValues(int key1, float value1, int key2, float value2, int key3, float value3)
public IntFloatHashMap withKeysValues(int key1, float value1, int key2, float value2, int key3, float value3, int key4, float value4)
public IntFloatHashMap withoutKey(int key)
withoutKey in interface org.eclipse.collections.api.map.primitive.MutableIntFloatMappublic IntFloatHashMap withoutAllKeys(org.eclipse.collections.api.IntIterable keys)
withoutAllKeys in interface org.eclipse.collections.api.map.primitive.MutableIntFloatMappublic org.eclipse.collections.api.map.primitive.MutableIntFloatMap asUnmodifiable()
asUnmodifiable in interface org.eclipse.collections.api.map.primitive.MutableIntFloatMappublic org.eclipse.collections.api.map.primitive.MutableIntFloatMap asSynchronized()
asSynchronized in interface org.eclipse.collections.api.map.primitive.MutableIntFloatMappublic org.eclipse.collections.api.map.primitive.ImmutableIntFloatMap toImmutable()
toImmutable in interface org.eclipse.collections.api.map.primitive.IntFloatMappublic float get(int key)
get in interface org.eclipse.collections.api.map.primitive.IntFloatMappublic float getIfAbsent(int key,
float ifAbsent)
getIfAbsent in interface org.eclipse.collections.api.map.primitive.IntFloatMappublic float getOrThrow(int key)
getOrThrow in interface org.eclipse.collections.api.map.primitive.IntFloatMappublic boolean containsKey(int key)
containsKey in interface org.eclipse.collections.api.map.primitive.IntFloatMapcontainsKey in interface IntKeysMappublic void forEachKey(org.eclipse.collections.api.block.procedure.primitive.IntProcedure procedure)
forEachKey in interface org.eclipse.collections.api.map.primitive.IntFloatMapforEachKey in interface IntKeysMappublic void forEachKeyValue(org.eclipse.collections.api.block.procedure.primitive.IntFloatProcedure procedure)
forEachKeyValue in interface org.eclipse.collections.api.map.primitive.IntFloatMappublic org.eclipse.collections.api.LazyIntIterable keysView()
keysView in interface org.eclipse.collections.api.map.primitive.IntFloatMappublic org.eclipse.collections.api.RichIterable<org.eclipse.collections.api.tuple.primitive.IntFloatPair> keyValuesView()
keyValuesView in interface org.eclipse.collections.api.map.primitive.IntFloatMappublic IntFloatHashMap select(org.eclipse.collections.api.block.predicate.primitive.IntFloatPredicate predicate)
select in interface org.eclipse.collections.api.map.primitive.IntFloatMapselect in interface org.eclipse.collections.api.map.primitive.MutableIntFloatMappublic IntFloatHashMap reject(org.eclipse.collections.api.block.predicate.primitive.IntFloatPredicate predicate)
reject in interface org.eclipse.collections.api.map.primitive.IntFloatMapreject in interface org.eclipse.collections.api.map.primitive.MutableIntFloatMappublic 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.MutableIntSet keySet()
keySet in interface org.eclipse.collections.api.map.primitive.IntFloatMappublic org.eclipse.collections.api.collection.primitive.MutableFloatCollection values()
values in interface org.eclipse.collections.api.map.primitive.FloatValuesMapCopyright © 2004–2018. All rights reserved.