Class ObjectFloatHashMapWithHashingStrategy<K>
java.lang.Object
org.eclipse.collections.impl.map.mutable.primitive.ObjectFloatHashMapWithHashingStrategy<K>
- All Implemented Interfaces:
Externalizable,Serializable,FloatIterable,MutableObjectFloatMap<K>,ObjectFloatMap<K>,PrimitiveIterable
public class ObjectFloatHashMapWithHashingStrategy<K>
extends Object
implements MutableObjectFloatMap<K>, Externalizable
This file was automatically generated from template file objectPrimitiveHashMapWithHashingStrategy.stg.
- Since:
- 7.0.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Use ObjectFloatHashMapWithHashingStrategy(HashingStrategy) instead.ObjectFloatHashMapWithHashingStrategy(HashingStrategy<? super K> hashingStrategy) ObjectFloatHashMapWithHashingStrategy(HashingStrategy<? super K> hashingStrategy, int initialCapacity) ObjectFloatHashMapWithHashingStrategy(HashingStrategy<? super K> hashingStrategy, ObjectFloatMap<? extends K> map) -
Method Summary
Modifier and TypeMethodDescriptionfloataddToValue(K key, float toBeAdded) booleanallSatisfy(FloatPredicate predicate) booleanallSatisfyKeyValue(ObjectFloatPredicate<K> predicate) booleananySatisfy(FloatPredicate predicate) voidappendString(Appendable appendable) voidappendString(Appendable appendable, String separator) voidappendString(Appendable appendable, String start, String separator, String end) asLazy()doubleaverage()chunk(int size) voidclear()<V> MutableCollection<V>collect(FloatToObjectFunction<? extends V> function) voidcompact()Deprecated.since 12.0 - UsetrimToSize()insteadbooleancontains(float value) booleancontainsAll(float... source) booleancontainsAll(FloatIterable source) booleancontainsKey(Object key) booleancontainsValue(float value) intcount(FloatPredicate predicate) floatdetectIfNone(FloatPredicate predicate, float ifNone) voideach(FloatProcedure procedure) booleanvoidforEachKey(Procedure<? super K> procedure) voidforEachKeyValue(ObjectFloatProcedure<? super K> procedure) voidforEachValue(FloatProcedure procedure) floatfloatfloatgetIfAbsent(Object key, float ifAbsent) floatgetIfAbsentPut(K key, float value) floatgetIfAbsentPut(K key, FloatFunction0 function) <P> floatgetIfAbsentPutWith(K key, FloatFunction<? super P> function, P parameter) floatgetIfAbsentPutWithKey(K key, FloatFunction<? super K> function) floatgetOrThrow(Object key) inthashCode()<V> VinjectInto(V injectedValue, ObjectFloatToObjectFunction<? super V, ? extends V> function) booleanisEmpty()keySet()keysView()makeString(String separator) makeString(String start, String separator, String end) floatmax()floatmaxIfEmpty(float defaultValue) doublemedian()floatmin()floatminIfEmpty(float defaultValue) static <K> ObjectFloatHashMapWithHashingStrategy<K>newMap(HashingStrategy<? super K> hashingStrategy) static <K> ObjectFloatHashMapWithHashingStrategy<K>newMap(HashingStrategy<? super K> hashingStrategy, ObjectFloatMap<K> map) static <K> ObjectFloatHashMapWithHashingStrategy<K>static <K> ObjectFloatHashMapWithHashingStrategy<K>newMapWithInitialCapacity(HashingStrategy<? super K> hashingStrategy, int initialCapacity) static <K> ObjectFloatHashMapWithHashingStrategy<K>newWithKeysValues(HashingStrategy<? super K> hashingStrategy, K key1, float value1) static <K> ObjectFloatHashMapWithHashingStrategy<K>newWithKeysValues(HashingStrategy<? super K> hashingStrategy, K key1, float value1, K key2, float value2) static <K> ObjectFloatHashMapWithHashingStrategy<K>newWithKeysValues(HashingStrategy<? super K> hashingStrategy, K key1, float value1, K key2, float value2, K key3, float value3) static <K> ObjectFloatHashMapWithHashingStrategy<K>newWithKeysValues(HashingStrategy<? super K> hashingStrategy, K key1, float value1, K key2, float value2, K key3, float value3, K key4, float value4) booleannoneSatisfy(FloatPredicate predicate) booleannotEmpty()voidvoidputAll(ObjectFloatMap<? extends K> map) voidreject(FloatPredicate predicate) reject(ObjectFloatPredicate<? super K> predicate) voidvoidvoidremoveKeyAtIndex(K key, int index) floatremoveKeyIfAbsent(K key, float value) select(FloatPredicate predicate) select(ObjectFloatPredicate<? super K> predicate) intsize()doublesum()float[]toArray()float[]toArray(float[] target) toBag()toList()toSet()float[]toString()booleanfloatupdateValue(K key, float initialValueIfAbsent, FloatToFloatFunction function) voidupdateValues(ObjectFloatToFloatFunction<? super K> function) values()withKeysValues(K key1, float value1, K key2, float value2) withKeysValues(K key1, float value1, K key2, float value2, K key3, float value3) withKeysValues(K key1, float value1, K key2, float value2, K key3, float value3, K key4, float value4) withKeyValue(K key1, float value1) withoutAllKeys(Iterable<? extends K> keys) withoutKey(K key) voidMethods inherited from interface org.eclipse.collections.api.FloatIterable
averageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, containsAny, containsAny, containsNone, containsNone, flatCollect, forEach, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, medianIfEmpty, reduce, reduceIfEmpty, reject, select, summaryStatistics, toSortedList, toSortedListBy, toSortedListByMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableObjectFloatMap
putPair, tap, withAllKeyValuesMethods inherited from interface org.eclipse.collections.api.map.primitive.ObjectFloatMap
injectIntoKeyValue
-
Field Details
-
EMPTY_VALUE
public static final float EMPTY_VALUE- See Also:
-
-
Constructor Details
-
ObjectFloatHashMapWithHashingStrategy
Deprecated.Use ObjectFloatHashMapWithHashingStrategy(HashingStrategy) instead. -
ObjectFloatHashMapWithHashingStrategy
-
ObjectFloatHashMapWithHashingStrategy
public ObjectFloatHashMapWithHashingStrategy(HashingStrategy<? super K> hashingStrategy, int initialCapacity) -
ObjectFloatHashMapWithHashingStrategy
public ObjectFloatHashMapWithHashingStrategy(HashingStrategy<? super K> hashingStrategy, ObjectFloatMap<? extends K> map)
-
-
Method Details
-
newMap
public static <K> ObjectFloatHashMapWithHashingStrategy<K> newMap(HashingStrategy<? super K> hashingStrategy) -
newMap
public static <K> ObjectFloatHashMapWithHashingStrategy<K> newMap(HashingStrategy<? super K> hashingStrategy, ObjectFloatMap<K> map) -
newMap
public static <K> ObjectFloatHashMapWithHashingStrategy<K> newMap(ObjectFloatHashMapWithHashingStrategy<K> map) -
newMapWithInitialCapacity
public static <K> ObjectFloatHashMapWithHashingStrategy<K> newMapWithInitialCapacity(HashingStrategy<? super K> hashingStrategy, int initialCapacity) -
newWithKeysValues
public static <K> ObjectFloatHashMapWithHashingStrategy<K> newWithKeysValues(HashingStrategy<? super K> hashingStrategy, K key1, float value1) -
newWithKeysValues
public static <K> ObjectFloatHashMapWithHashingStrategy<K> newWithKeysValues(HashingStrategy<? super K> hashingStrategy, K key1, float value1, K key2, float value2) -
newWithKeysValues
public static <K> ObjectFloatHashMapWithHashingStrategy<K> newWithKeysValues(HashingStrategy<? super K> hashingStrategy, K key1, float value1, K key2, float value2, K key3, float value3) -
newWithKeysValues
public static <K> ObjectFloatHashMapWithHashingStrategy<K> newWithKeysValues(HashingStrategy<? super K> hashingStrategy, K key1, float value1, K key2, float value2, K key3, float value3, K key4, float value4) -
equals
-
hashCode
public int hashCode() -
toString
- Specified by:
toStringin interfaceObjectFloatMap<K>- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classObject
-
size
public int size()- Specified by:
sizein interfacePrimitiveIterable
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfacePrimitiveIterable
-
notEmpty
public boolean notEmpty()- Specified by:
notEmptyin interfacePrimitiveIterable
-
makeString
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
- Specified by:
makeStringin interfacePrimitiveIterable
-
appendString
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
- Specified by:
appendStringin interfacePrimitiveIterable
-
floatIterator
- Specified by:
floatIteratorin interfaceFloatIterable- Specified by:
floatIteratorin interfaceMutableObjectFloatMap<K>
-
toArray
public float[] toArray()- Specified by:
toArrayin interfaceFloatIterable
-
toArray
public float[] toArray(float[] target) - Specified by:
toArrayin interfaceFloatIterable
-
contains
public boolean contains(float value) - Specified by:
containsin interfaceFloatIterable
-
containsAll
public boolean containsAll(float... source) - Specified by:
containsAllin interfaceFloatIterable
-
containsAll
- Specified by:
containsAllin interfaceFloatIterable
-
clear
public void clear()- Specified by:
clearin interfaceMutableObjectFloatMap<K>
-
put
- Specified by:
putin interfaceMutableObjectFloatMap<K>
-
putAll
- Specified by:
putAllin interfaceMutableObjectFloatMap<K>
-
updateValues
- Specified by:
updateValuesin interfaceMutableObjectFloatMap<K>
-
removeKey
- Specified by:
removeKeyin interfaceMutableObjectFloatMap<K>
-
removeKeyAtIndex
-
remove
- Specified by:
removein interfaceMutableObjectFloatMap<K>
-
removeKeyIfAbsent
- Specified by:
removeKeyIfAbsentin interfaceMutableObjectFloatMap<K>
-
getIfAbsentPut
- Specified by:
getIfAbsentPutin interfaceMutableObjectFloatMap<K>
-
getAndPut
- Specified by:
getAndPutin interfaceMutableObjectFloatMap<K>
-
getIfAbsentPut
- Specified by:
getIfAbsentPutin interfaceMutableObjectFloatMap<K>
-
getIfAbsentPutWith
- Specified by:
getIfAbsentPutWithin interfaceMutableObjectFloatMap<K>
-
getIfAbsentPutWithKey
- Specified by:
getIfAbsentPutWithKeyin interfaceMutableObjectFloatMap<K>
-
updateValue
- Specified by:
updateValuein interfaceMutableObjectFloatMap<K>
-
addToValue
- Specified by:
addToValuein interfaceMutableObjectFloatMap<K>
-
withKeyValue
- Specified by:
withKeyValuein interfaceMutableObjectFloatMap<K>
-
withKeysValues
public ObjectFloatHashMapWithHashingStrategy<K> withKeysValues(K key1, float value1, K key2, float value2) -
withKeysValues
public ObjectFloatHashMapWithHashingStrategy<K> withKeysValues(K key1, float value1, K key2, float value2, K key3, float value3) -
withKeysValues
-
withoutKey
- Specified by:
withoutKeyin interfaceMutableObjectFloatMap<K>
-
withoutAllKeys
- Specified by:
withoutAllKeysin interfaceMutableObjectFloatMap<K>
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableObjectFloatMap<K>
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableObjectFloatMap<K>
-
toImmutable
- Specified by:
toImmutablein interfaceObjectFloatMap<K>
-
get
- Specified by:
getin interfaceObjectFloatMap<K>
-
getOrThrow
- Specified by:
getOrThrowin interfaceObjectFloatMap<K>
-
getIfAbsent
- Specified by:
getIfAbsentin interfaceObjectFloatMap<K>
-
containsKey
- Specified by:
containsKeyin interfaceObjectFloatMap<K>
-
containsValue
public boolean containsValue(float value) - Specified by:
containsValuein interfaceObjectFloatMap<K>
-
each
- Specified by:
eachin interfaceFloatIterable
-
forEachValue
- Specified by:
forEachValuein interfaceObjectFloatMap<K>
-
forEachKey
- Specified by:
forEachKeyin interfaceObjectFloatMap<K>
-
forEachKeyValue
- Specified by:
forEachKeyValuein interfaceObjectFloatMap<K>
-
allSatisfyKeyValue
- Specified by:
allSatisfyKeyValuein interfaceObjectFloatMap<K>- Since:
- 12.0
-
select
- Specified by:
selectin interfaceMutableObjectFloatMap<K>- Specified by:
selectin interfaceObjectFloatMap<K>
-
reject
- Specified by:
rejectin interfaceMutableObjectFloatMap<K>- Specified by:
rejectin interfaceObjectFloatMap<K>
-
select
- Specified by:
selectin interfaceFloatIterable- Specified by:
selectin interfaceMutableObjectFloatMap<K>
-
reject
- Specified by:
rejectin interfaceFloatIterable- Specified by:
rejectin interfaceMutableObjectFloatMap<K>
-
detectIfNone
- Specified by:
detectIfNonein interfaceFloatIterable
-
collect
- Specified by:
collectin interfaceFloatIterable- Specified by:
collectin interfaceMutableObjectFloatMap<K>
-
count
- Specified by:
countin interfaceFloatIterable
-
anySatisfy
- Specified by:
anySatisfyin interfaceFloatIterable
-
allSatisfy
- Specified by:
allSatisfyin interfaceFloatIterable
-
noneSatisfy
- Specified by:
noneSatisfyin interfaceFloatIterable
-
injectInto
public <V> V injectInto(V injectedValue, ObjectFloatToObjectFunction<? super V, ? extends V> function) - Specified by:
injectIntoin interfaceFloatIterable
-
chunk
- Specified by:
chunkin interfaceFloatIterable
-
sum
public double sum()- Specified by:
sumin interfaceFloatIterable
-
max
public float max()- Specified by:
maxin interfaceFloatIterable
-
min
public float min()- Specified by:
minin interfaceFloatIterable
-
maxIfEmpty
public float maxIfEmpty(float defaultValue) - Specified by:
maxIfEmptyin interfaceFloatIterable
-
minIfEmpty
public float minIfEmpty(float defaultValue) - Specified by:
minIfEmptyin interfaceFloatIterable
-
average
public double average()- Specified by:
averagein interfaceFloatIterable
-
median
public double median()- Specified by:
medianin interfaceFloatIterable
-
toList
- Specified by:
toListin interfaceFloatIterable
-
toSet
- Specified by:
toSetin interfaceFloatIterable
-
toBag
- Specified by:
toBagin interfaceFloatIterable
-
asLazy
- Specified by:
asLazyin interfaceFloatIterable
-
toSortedArray
public float[] toSortedArray()- Specified by:
toSortedArrayin interfaceFloatIterable
-
toSortedList
- Specified by:
toSortedListin interfaceFloatIterable
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
keysView
- Specified by:
keysViewin interfaceObjectFloatMap<K>
-
keyValuesView
- Specified by:
keyValuesViewin interfaceObjectFloatMap<K>
-
flipUniqueValues
- Specified by:
flipUniqueValuesin interfaceMutableObjectFloatMap<K>- Specified by:
flipUniqueValuesin interfaceObjectFloatMap<K>
-
trimToSize
public boolean trimToSize()- Since:
- 12.0
-
compact
Deprecated.since 12.0 - UsetrimToSize()insteadRehashes every element in the set into a new backing table of the smallest possible size and eliminating removed sentinels. -
keySet
- Specified by:
keySetin interfaceObjectFloatMap<K>
-
values
- Specified by:
valuesin interfaceObjectFloatMap<K>
-