public class ObjectFloatHashMapWithHashingStrategy<K> extends Object implements org.eclipse.collections.api.map.primitive.MutableObjectFloatMap<K>, Externalizable
| Modifier and Type | Field and Description |
|---|---|
static float |
EMPTY_VALUE |
| Constructor and Description |
|---|
ObjectFloatHashMapWithHashingStrategy()
Deprecated.
|
ObjectFloatHashMapWithHashingStrategy(org.eclipse.collections.api.block.HashingStrategy<? super K> hashingStrategy) |
ObjectFloatHashMapWithHashingStrategy(org.eclipse.collections.api.block.HashingStrategy<? super K> hashingStrategy,
int initialCapacity) |
ObjectFloatHashMapWithHashingStrategy(org.eclipse.collections.api.block.HashingStrategy<? super K> hashingStrategy,
org.eclipse.collections.api.map.primitive.ObjectFloatMap<? extends K> map) |
| Modifier and Type | Method and Description |
|---|---|
float |
addToValue(K key,
float toBeAdded) |
boolean |
allSatisfy(org.eclipse.collections.api.block.predicate.primitive.FloatPredicate predicate) |
boolean |
anySatisfy(org.eclipse.collections.api.block.predicate.primitive.FloatPredicate predicate) |
void |
appendString(Appendable appendable) |
void |
appendString(Appendable appendable,
String separator) |
void |
appendString(Appendable appendable,
String start,
String separator,
String end) |
org.eclipse.collections.api.LazyFloatIterable |
asLazy() |
org.eclipse.collections.api.map.primitive.MutableObjectFloatMap<K> |
asSynchronized() |
org.eclipse.collections.api.map.primitive.MutableObjectFloatMap<K> |
asUnmodifiable() |
double |
average() |
void |
clear() |
<V> org.eclipse.collections.api.collection.MutableCollection<V> |
collect(org.eclipse.collections.api.block.function.primitive.FloatToObjectFunction<? extends V> function) |
void |
compact()
Rehashes every element in the set into a new backing table of the smallest possible size and eliminating removed sentinels.
|
boolean |
contains(float value) |
boolean |
containsAll(float... source) |
boolean |
containsAll(org.eclipse.collections.api.FloatIterable source) |
boolean |
containsKey(Object key) |
boolean |
containsValue(float value) |
int |
count(org.eclipse.collections.api.block.predicate.primitive.FloatPredicate predicate) |
float |
detectIfNone(org.eclipse.collections.api.block.predicate.primitive.FloatPredicate predicate,
float ifNone) |
void |
each(org.eclipse.collections.api.block.procedure.primitive.FloatProcedure procedure) |
boolean |
equals(Object obj) |
org.eclipse.collections.api.iterator.MutableFloatIterator |
floatIterator() |
void |
forEach(org.eclipse.collections.api.block.procedure.primitive.FloatProcedure procedure) |
void |
forEachKey(org.eclipse.collections.api.block.procedure.Procedure<? super K> procedure) |
void |
forEachKeyValue(org.eclipse.collections.api.block.procedure.primitive.ObjectFloatProcedure<? super K> procedure) |
void |
forEachValue(org.eclipse.collections.api.block.procedure.primitive.FloatProcedure procedure) |
float |
get(Object key) |
float |
getIfAbsent(Object key,
float ifAbsent) |
float |
getIfAbsentPut(K key,
float value) |
float |
getIfAbsentPut(K key,
org.eclipse.collections.api.block.function.primitive.FloatFunction0 function) |
<P> float |
getIfAbsentPutWith(K key,
org.eclipse.collections.api.block.function.primitive.FloatFunction<? super P> function,
P parameter) |
float |
getIfAbsentPutWithKey(K key,
org.eclipse.collections.api.block.function.primitive.FloatFunction<? super K> function) |
float |
getOrThrow(Object key) |
int |
hashCode() |
<V> V |
injectInto(V injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectFloatToObjectFunction<? super V,? extends V> function) |
boolean |
isEmpty() |
Set<K> |
keySet() |
org.eclipse.collections.api.LazyIterable<K> |
keysView() |
org.eclipse.collections.api.RichIterable<org.eclipse.collections.api.tuple.primitive.ObjectFloatPair<K>> |
keyValuesView() |
String |
makeString() |
String |
makeString(String separator) |
String |
makeString(String start,
String separator,
String end) |
float |
max() |
float |
maxIfEmpty(float defaultValue) |
double |
median() |
float |
min() |
float |
minIfEmpty(float defaultValue) |
static <K> ObjectFloatHashMapWithHashingStrategy<K> |
newMap(org.eclipse.collections.api.block.HashingStrategy<? super K> hashingStrategy) |
static <K> ObjectFloatHashMapWithHashingStrategy<K> |
newMap(org.eclipse.collections.api.block.HashingStrategy<? super K> hashingStrategy,
org.eclipse.collections.api.map.primitive.ObjectFloatMap<K> map) |
static <K> ObjectFloatHashMapWithHashingStrategy<K> |
newMap(ObjectFloatHashMapWithHashingStrategy<K> map) |
static <K> ObjectFloatHashMapWithHashingStrategy<K> |
newWithKeysValues(org.eclipse.collections.api.block.HashingStrategy<? super K> hashingStrategy,
K key1,
float value1) |
static <K> ObjectFloatHashMapWithHashingStrategy<K> |
newWithKeysValues(org.eclipse.collections.api.block.HashingStrategy<? super K> hashingStrategy,
K key1,
float value1,
K key2,
float value2) |
static <K> ObjectFloatHashMapWithHashingStrategy<K> |
newWithKeysValues(org.eclipse.collections.api.block.HashingStrategy<? super K> hashingStrategy,
K key1,
float value1,
K key2,
float value2,
K key3,
float value3) |
static <K> ObjectFloatHashMapWithHashingStrategy<K> |
newWithKeysValues(org.eclipse.collections.api.block.HashingStrategy<? super K> hashingStrategy,
K key1,
float value1,
K key2,
float value2,
K key3,
float value3,
K key4,
float value4) |
boolean |
noneSatisfy(org.eclipse.collections.api.block.predicate.primitive.FloatPredicate predicate) |
boolean |
notEmpty() |
void |
put(K key,
float value) |
void |
putAll(org.eclipse.collections.api.map.primitive.ObjectFloatMap<? extends K> map) |
void |
readExternal(ObjectInput in) |
org.eclipse.collections.api.collection.primitive.MutableFloatCollection |
reject(org.eclipse.collections.api.block.predicate.primitive.FloatPredicate predicate) |
ObjectFloatHashMapWithHashingStrategy<K> |
reject(org.eclipse.collections.api.block.predicate.primitive.ObjectFloatPredicate<? super K> predicate) |
void |
remove(Object key) |
void |
removeKey(K key) |
void |
removeKeyAtIndex(K key,
int index) |
float |
removeKeyIfAbsent(K key,
float value) |
org.eclipse.collections.api.collection.primitive.MutableFloatCollection |
select(org.eclipse.collections.api.block.predicate.primitive.FloatPredicate predicate) |
ObjectFloatHashMapWithHashingStrategy<K> |
select(org.eclipse.collections.api.block.predicate.primitive.ObjectFloatPredicate<? super K> predicate) |
int |
size() |
double |
sum() |
float[] |
toArray() |
org.eclipse.collections.api.bag.primitive.MutableFloatBag |
toBag() |
org.eclipse.collections.api.map.primitive.ImmutableObjectFloatMap<K> |
toImmutable() |
org.eclipse.collections.api.list.primitive.MutableFloatList |
toList() |
org.eclipse.collections.api.set.primitive.MutableFloatSet |
toSet() |
float[] |
toSortedArray() |
org.eclipse.collections.api.list.primitive.MutableFloatList |
toSortedList() |
String |
toString() |
float |
updateValue(K key,
float initialValueIfAbsent,
org.eclipse.collections.api.block.function.primitive.FloatToFloatFunction function) |
org.eclipse.collections.api.collection.primitive.MutableFloatCollection |
values() |
ObjectFloatHashMapWithHashingStrategy<K> |
withKeysValues(K key1,
float value1,
K key2,
float value2) |
ObjectFloatHashMapWithHashingStrategy<K> |
withKeysValues(K key1,
float value1,
K key2,
float value2,
K key3,
float value3) |
ObjectFloatHashMapWithHashingStrategy<K> |
withKeysValues(K key1,
float value1,
K key2,
float value2,
K key3,
float value3,
K key4,
float value4) |
ObjectFloatHashMapWithHashingStrategy<K> |
withKeyValue(K key1,
float value1) |
ObjectFloatHashMapWithHashingStrategy<K> |
withoutAllKeys(Iterable<? extends K> keys) |
ObjectFloatHashMapWithHashingStrategy<K> |
withoutKey(K key) |
void |
writeExternal(ObjectOutput out) |
public static final float EMPTY_VALUE
@Deprecated public ObjectFloatHashMapWithHashingStrategy()
public ObjectFloatHashMapWithHashingStrategy(org.eclipse.collections.api.block.HashingStrategy<? super K> hashingStrategy)
public ObjectFloatHashMapWithHashingStrategy(org.eclipse.collections.api.block.HashingStrategy<? super K> hashingStrategy, int initialCapacity)
public static <K> ObjectFloatHashMapWithHashingStrategy<K> newMap(org.eclipse.collections.api.block.HashingStrategy<? super K> hashingStrategy)
public static <K> ObjectFloatHashMapWithHashingStrategy<K> newMap(org.eclipse.collections.api.block.HashingStrategy<? super K> hashingStrategy, org.eclipse.collections.api.map.primitive.ObjectFloatMap<K> map)
public static <K> ObjectFloatHashMapWithHashingStrategy<K> newMap(ObjectFloatHashMapWithHashingStrategy<K> map)
public static <K> ObjectFloatHashMapWithHashingStrategy<K> newWithKeysValues(org.eclipse.collections.api.block.HashingStrategy<? super K> hashingStrategy, K key1, float value1)
public static <K> ObjectFloatHashMapWithHashingStrategy<K> newWithKeysValues(org.eclipse.collections.api.block.HashingStrategy<? super K> hashingStrategy, K key1, float value1, K key2, float value2)
public static <K> ObjectFloatHashMapWithHashingStrategy<K> newWithKeysValues(org.eclipse.collections.api.block.HashingStrategy<? super K> hashingStrategy, K key1, float value1, K key2, float value2, K key3, float value3)
public static <K> ObjectFloatHashMapWithHashingStrategy<K> newWithKeysValues(org.eclipse.collections.api.block.HashingStrategy<? super K> hashingStrategy, K key1, float value1, K key2, float value2, K key3, float value3, K key4, float value4)
public String toString()
public int size()
size in interface org.eclipse.collections.api.PrimitiveIterablepublic boolean isEmpty()
isEmpty in interface org.eclipse.collections.api.PrimitiveIterablepublic boolean notEmpty()
notEmpty in interface org.eclipse.collections.api.PrimitiveIterablepublic String makeString()
makeString in interface org.eclipse.collections.api.PrimitiveIterablepublic String makeString(String separator)
makeString in interface org.eclipse.collections.api.PrimitiveIterablepublic String makeString(String start, String separator, String end)
makeString in interface org.eclipse.collections.api.PrimitiveIterablepublic void appendString(Appendable appendable)
appendString in interface org.eclipse.collections.api.PrimitiveIterablepublic void appendString(Appendable appendable, String separator)
appendString in interface org.eclipse.collections.api.PrimitiveIterablepublic void appendString(Appendable appendable, String start, String separator, String end)
appendString in interface org.eclipse.collections.api.PrimitiveIterablepublic org.eclipse.collections.api.iterator.MutableFloatIterator floatIterator()
floatIterator in interface org.eclipse.collections.api.FloatIterablefloatIterator in interface org.eclipse.collections.api.map.primitive.MutableObjectFloatMap<K>public float[] toArray()
toArray in interface org.eclipse.collections.api.FloatIterablepublic boolean contains(float value)
contains in interface org.eclipse.collections.api.FloatIterablepublic boolean containsAll(float... source)
containsAll in interface org.eclipse.collections.api.FloatIterablepublic boolean containsAll(org.eclipse.collections.api.FloatIterable source)
containsAll in interface org.eclipse.collections.api.FloatIterablepublic void clear()
clear in interface org.eclipse.collections.api.map.primitive.MutableObjectFloatMap<K>public void put(K key, float value)
put in interface org.eclipse.collections.api.map.primitive.MutableObjectFloatMap<K>public void putAll(org.eclipse.collections.api.map.primitive.ObjectFloatMap<? extends K> map)
putAll in interface org.eclipse.collections.api.map.primitive.MutableObjectFloatMap<K>public void removeKey(K key)
removeKey in interface org.eclipse.collections.api.map.primitive.MutableObjectFloatMap<K>public void removeKeyAtIndex(K key, int index)
public void remove(Object key)
remove in interface org.eclipse.collections.api.map.primitive.MutableObjectFloatMap<K>public float removeKeyIfAbsent(K key, float value)
removeKeyIfAbsent in interface org.eclipse.collections.api.map.primitive.MutableObjectFloatMap<K>public float getIfAbsentPut(K key, float value)
getIfAbsentPut in interface org.eclipse.collections.api.map.primitive.MutableObjectFloatMap<K>public float getIfAbsentPut(K key, org.eclipse.collections.api.block.function.primitive.FloatFunction0 function)
getIfAbsentPut in interface org.eclipse.collections.api.map.primitive.MutableObjectFloatMap<K>public <P> float getIfAbsentPutWith(K key, org.eclipse.collections.api.block.function.primitive.FloatFunction<? super P> function, P parameter)
getIfAbsentPutWith in interface org.eclipse.collections.api.map.primitive.MutableObjectFloatMap<K>public float getIfAbsentPutWithKey(K key, org.eclipse.collections.api.block.function.primitive.FloatFunction<? super K> function)
getIfAbsentPutWithKey in interface org.eclipse.collections.api.map.primitive.MutableObjectFloatMap<K>public float updateValue(K key, float initialValueIfAbsent, org.eclipse.collections.api.block.function.primitive.FloatToFloatFunction function)
updateValue in interface org.eclipse.collections.api.map.primitive.MutableObjectFloatMap<K>public float addToValue(K key, float toBeAdded)
addToValue in interface org.eclipse.collections.api.map.primitive.MutableObjectFloatMap<K>public ObjectFloatHashMapWithHashingStrategy<K> withKeyValue(K key1, float value1)
withKeyValue in interface org.eclipse.collections.api.map.primitive.MutableObjectFloatMap<K>public ObjectFloatHashMapWithHashingStrategy<K> withKeysValues(K key1, float value1, K key2, float value2)
public ObjectFloatHashMapWithHashingStrategy<K> withKeysValues(K key1, float value1, K key2, float value2, K key3, float value3)
public ObjectFloatHashMapWithHashingStrategy<K> withKeysValues(K key1, float value1, K key2, float value2, K key3, float value3, K key4, float value4)
public ObjectFloatHashMapWithHashingStrategy<K> withoutKey(K key)
withoutKey in interface org.eclipse.collections.api.map.primitive.MutableObjectFloatMap<K>public ObjectFloatHashMapWithHashingStrategy<K> withoutAllKeys(Iterable<? extends K> keys)
withoutAllKeys in interface org.eclipse.collections.api.map.primitive.MutableObjectFloatMap<K>public org.eclipse.collections.api.map.primitive.MutableObjectFloatMap<K> asUnmodifiable()
asUnmodifiable in interface org.eclipse.collections.api.map.primitive.MutableObjectFloatMap<K>public org.eclipse.collections.api.map.primitive.MutableObjectFloatMap<K> asSynchronized()
asSynchronized in interface org.eclipse.collections.api.map.primitive.MutableObjectFloatMap<K>public org.eclipse.collections.api.map.primitive.ImmutableObjectFloatMap<K> toImmutable()
toImmutable in interface org.eclipse.collections.api.map.primitive.ObjectFloatMap<K>public float get(Object key)
get in interface org.eclipse.collections.api.map.primitive.ObjectFloatMap<K>public float getOrThrow(Object key)
getOrThrow in interface org.eclipse.collections.api.map.primitive.ObjectFloatMap<K>public float getIfAbsent(Object key, float ifAbsent)
getIfAbsent in interface org.eclipse.collections.api.map.primitive.ObjectFloatMap<K>public boolean containsKey(Object key)
containsKey in interface org.eclipse.collections.api.map.primitive.ObjectFloatMap<K>public boolean containsValue(float value)
containsValue in interface org.eclipse.collections.api.map.primitive.ObjectFloatMap<K>public void forEach(org.eclipse.collections.api.block.procedure.primitive.FloatProcedure procedure)
forEach in interface org.eclipse.collections.api.FloatIterablepublic void each(org.eclipse.collections.api.block.procedure.primitive.FloatProcedure procedure)
each in interface org.eclipse.collections.api.FloatIterablepublic void forEachValue(org.eclipse.collections.api.block.procedure.primitive.FloatProcedure procedure)
forEachValue in interface org.eclipse.collections.api.map.primitive.ObjectFloatMap<K>public void forEachKey(org.eclipse.collections.api.block.procedure.Procedure<? super K> procedure)
forEachKey in interface org.eclipse.collections.api.map.primitive.ObjectFloatMap<K>public void forEachKeyValue(org.eclipse.collections.api.block.procedure.primitive.ObjectFloatProcedure<? super K> procedure)
forEachKeyValue in interface org.eclipse.collections.api.map.primitive.ObjectFloatMap<K>public ObjectFloatHashMapWithHashingStrategy<K> select(org.eclipse.collections.api.block.predicate.primitive.ObjectFloatPredicate<? super K> predicate)
public ObjectFloatHashMapWithHashingStrategy<K> reject(org.eclipse.collections.api.block.predicate.primitive.ObjectFloatPredicate<? super K> predicate)
public org.eclipse.collections.api.collection.primitive.MutableFloatCollection select(org.eclipse.collections.api.block.predicate.primitive.FloatPredicate predicate)
select in interface org.eclipse.collections.api.FloatIterableselect in interface org.eclipse.collections.api.map.primitive.MutableObjectFloatMap<K>public org.eclipse.collections.api.collection.primitive.MutableFloatCollection reject(org.eclipse.collections.api.block.predicate.primitive.FloatPredicate predicate)
reject in interface org.eclipse.collections.api.FloatIterablereject in interface org.eclipse.collections.api.map.primitive.MutableObjectFloatMap<K>public float detectIfNone(org.eclipse.collections.api.block.predicate.primitive.FloatPredicate predicate,
float ifNone)
detectIfNone in interface org.eclipse.collections.api.FloatIterablepublic <V> org.eclipse.collections.api.collection.MutableCollection<V> collect(org.eclipse.collections.api.block.function.primitive.FloatToObjectFunction<? extends V> function)
collect in interface org.eclipse.collections.api.FloatIterablecollect in interface org.eclipse.collections.api.map.primitive.MutableObjectFloatMap<K>public int count(org.eclipse.collections.api.block.predicate.primitive.FloatPredicate predicate)
count in interface org.eclipse.collections.api.FloatIterablepublic boolean anySatisfy(org.eclipse.collections.api.block.predicate.primitive.FloatPredicate predicate)
anySatisfy in interface org.eclipse.collections.api.FloatIterablepublic boolean allSatisfy(org.eclipse.collections.api.block.predicate.primitive.FloatPredicate predicate)
allSatisfy in interface org.eclipse.collections.api.FloatIterablepublic boolean noneSatisfy(org.eclipse.collections.api.block.predicate.primitive.FloatPredicate predicate)
noneSatisfy in interface org.eclipse.collections.api.FloatIterablepublic <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 double sum()
sum in interface org.eclipse.collections.api.FloatIterablepublic float max()
max in interface org.eclipse.collections.api.FloatIterablepublic float min()
min in interface org.eclipse.collections.api.FloatIterablepublic float maxIfEmpty(float defaultValue)
maxIfEmpty in interface org.eclipse.collections.api.FloatIterablepublic float minIfEmpty(float defaultValue)
minIfEmpty in interface org.eclipse.collections.api.FloatIterablepublic double average()
average in interface org.eclipse.collections.api.FloatIterablepublic double median()
median in interface org.eclipse.collections.api.FloatIterablepublic org.eclipse.collections.api.list.primitive.MutableFloatList toList()
toList in interface org.eclipse.collections.api.FloatIterablepublic org.eclipse.collections.api.set.primitive.MutableFloatSet toSet()
toSet in interface org.eclipse.collections.api.FloatIterablepublic org.eclipse.collections.api.bag.primitive.MutableFloatBag toBag()
toBag in interface org.eclipse.collections.api.FloatIterablepublic org.eclipse.collections.api.LazyFloatIterable asLazy()
asLazy in interface org.eclipse.collections.api.FloatIterablepublic float[] toSortedArray()
toSortedArray in interface org.eclipse.collections.api.FloatIterablepublic org.eclipse.collections.api.list.primitive.MutableFloatList toSortedList()
toSortedList in interface org.eclipse.collections.api.FloatIterablepublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic org.eclipse.collections.api.LazyIterable<K> keysView()
keysView in interface org.eclipse.collections.api.map.primitive.ObjectFloatMap<K>public org.eclipse.collections.api.RichIterable<org.eclipse.collections.api.tuple.primitive.ObjectFloatPair<K>> keyValuesView()
keyValuesView in interface org.eclipse.collections.api.map.primitive.ObjectFloatMap<K>public void compact()
public Set<K> keySet()
keySet in interface org.eclipse.collections.api.map.primitive.ObjectFloatMap<K>public org.eclipse.collections.api.collection.primitive.MutableFloatCollection values()
values in interface org.eclipse.collections.api.map.primitive.ObjectFloatMap<K>Copyright © 2004–2017. All rights reserved.