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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static float
EMPTY_VALUE
-
Constructor Summary
Constructors Constructor Description ObjectFloatHashMapWithHashingStrategy()
Deprecated.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
-
Methods 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, toSortedListBy
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableObjectFloatMap
putPair, tap, withAllKeyValues
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.ObjectFloatMap
injectIntoKeyValue
-
-
-
-
Field Detail
-
EMPTY_VALUE
public static final float EMPTY_VALUE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ObjectFloatHashMapWithHashingStrategy
@Deprecated public ObjectFloatHashMapWithHashingStrategy()
Deprecated.Use ObjectFloatHashMapWithHashingStrategy(HashingStrategy) instead.
-
ObjectFloatHashMapWithHashingStrategy
public ObjectFloatHashMapWithHashingStrategy(HashingStrategy<? super K> hashingStrategy)
-
ObjectFloatHashMapWithHashingStrategy
public ObjectFloatHashMapWithHashingStrategy(HashingStrategy<? super K> hashingStrategy, int initialCapacity)
-
ObjectFloatHashMapWithHashingStrategy
public ObjectFloatHashMapWithHashingStrategy(HashingStrategy<? super K> hashingStrategy, ObjectFloatMap<? extends K> map)
-
-
Method Detail
-
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)
-
toString
public String toString()
- Specified by:
toString
in interfaceObjectFloatMap<K>
- Specified by:
toString
in interfacePrimitiveIterable
- Overrides:
toString
in classObject
-
size
public int size()
- Specified by:
size
in interfacePrimitiveIterable
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfacePrimitiveIterable
-
notEmpty
public boolean notEmpty()
- Specified by:
notEmpty
in interfacePrimitiveIterable
-
makeString
public String makeString()
- Specified by:
makeString
in interfacePrimitiveIterable
-
makeString
public String makeString(String separator)
- Specified by:
makeString
in interfacePrimitiveIterable
-
makeString
public String makeString(String start, String separator, String end)
- Specified by:
makeString
in interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable)
- Specified by:
appendString
in interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable, String separator)
- Specified by:
appendString
in interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable, String start, String separator, String end)
- Specified by:
appendString
in interfacePrimitiveIterable
-
floatIterator
public MutableFloatIterator floatIterator()
- Specified by:
floatIterator
in interfaceFloatIterable
- Specified by:
floatIterator
in interfaceMutableObjectFloatMap<K>
-
toArray
public float[] toArray()
- Specified by:
toArray
in interfaceFloatIterable
-
toArray
public float[] toArray(float[] target)
- Specified by:
toArray
in interfaceFloatIterable
-
contains
public boolean contains(float value)
- Specified by:
contains
in interfaceFloatIterable
-
containsAll
public boolean containsAll(float... source)
- Specified by:
containsAll
in interfaceFloatIterable
-
containsAll
public boolean containsAll(FloatIterable source)
- Specified by:
containsAll
in interfaceFloatIterable
-
clear
public void clear()
- Specified by:
clear
in interfaceMutableObjectFloatMap<K>
-
put
public void put(K key, float value)
- Specified by:
put
in interfaceMutableObjectFloatMap<K>
-
putAll
public void putAll(ObjectFloatMap<? extends K> map)
- Specified by:
putAll
in interfaceMutableObjectFloatMap<K>
-
updateValues
public void updateValues(ObjectFloatToFloatFunction<? super K> function)
- Specified by:
updateValues
in interfaceMutableObjectFloatMap<K>
-
removeKey
public void removeKey(K key)
- Specified by:
removeKey
in interfaceMutableObjectFloatMap<K>
-
removeKeyAtIndex
public void removeKeyAtIndex(K key, int index)
-
remove
public void remove(Object key)
- Specified by:
remove
in interfaceMutableObjectFloatMap<K>
-
removeKeyIfAbsent
public float removeKeyIfAbsent(K key, float value)
- Specified by:
removeKeyIfAbsent
in interfaceMutableObjectFloatMap<K>
-
getIfAbsentPut
public float getIfAbsentPut(K key, float value)
- Specified by:
getIfAbsentPut
in interfaceMutableObjectFloatMap<K>
-
getAndPut
public float getAndPut(K key, float putValue, float defaultValue)
- Specified by:
getAndPut
in interfaceMutableObjectFloatMap<K>
-
getIfAbsentPut
public float getIfAbsentPut(K key, FloatFunction0 function)
- Specified by:
getIfAbsentPut
in interfaceMutableObjectFloatMap<K>
-
getIfAbsentPutWith
public <P> float getIfAbsentPutWith(K key, FloatFunction<? super P> function, P parameter)
- Specified by:
getIfAbsentPutWith
in interfaceMutableObjectFloatMap<K>
-
getIfAbsentPutWithKey
public float getIfAbsentPutWithKey(K key, FloatFunction<? super K> function)
- Specified by:
getIfAbsentPutWithKey
in interfaceMutableObjectFloatMap<K>
-
updateValue
public float updateValue(K key, float initialValueIfAbsent, FloatToFloatFunction function)
- Specified by:
updateValue
in interfaceMutableObjectFloatMap<K>
-
addToValue
public float addToValue(K key, float toBeAdded)
- Specified by:
addToValue
in interfaceMutableObjectFloatMap<K>
-
withKeyValue
public ObjectFloatHashMapWithHashingStrategy<K> withKeyValue(K key1, float value1)
- Specified by:
withKeyValue
in 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
public ObjectFloatHashMapWithHashingStrategy<K> withKeysValues(K key1, float value1, K key2, float value2, K key3, float value3, K key4, float value4)
-
withoutKey
public ObjectFloatHashMapWithHashingStrategy<K> withoutKey(K key)
- Specified by:
withoutKey
in interfaceMutableObjectFloatMap<K>
-
withoutAllKeys
public ObjectFloatHashMapWithHashingStrategy<K> withoutAllKeys(Iterable<? extends K> keys)
- Specified by:
withoutAllKeys
in interfaceMutableObjectFloatMap<K>
-
asUnmodifiable
public MutableObjectFloatMap<K> asUnmodifiable()
- Specified by:
asUnmodifiable
in interfaceMutableObjectFloatMap<K>
-
asSynchronized
public MutableObjectFloatMap<K> asSynchronized()
- Specified by:
asSynchronized
in interfaceMutableObjectFloatMap<K>
-
toImmutable
public ImmutableObjectFloatMap<K> toImmutable()
- Specified by:
toImmutable
in interfaceObjectFloatMap<K>
-
get
public float get(Object key)
- Specified by:
get
in interfaceObjectFloatMap<K>
-
getOrThrow
public float getOrThrow(Object key)
- Specified by:
getOrThrow
in interfaceObjectFloatMap<K>
-
getIfAbsent
public float getIfAbsent(Object key, float ifAbsent)
- Specified by:
getIfAbsent
in interfaceObjectFloatMap<K>
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKey
in interfaceObjectFloatMap<K>
-
containsValue
public boolean containsValue(float value)
- Specified by:
containsValue
in interfaceObjectFloatMap<K>
-
each
public void each(FloatProcedure procedure)
- Specified by:
each
in interfaceFloatIterable
-
forEachValue
public void forEachValue(FloatProcedure procedure)
- Specified by:
forEachValue
in interfaceObjectFloatMap<K>
-
forEachKey
public void forEachKey(Procedure<? super K> procedure)
- Specified by:
forEachKey
in interfaceObjectFloatMap<K>
-
forEachKeyValue
public void forEachKeyValue(ObjectFloatProcedure<? super K> procedure)
- Specified by:
forEachKeyValue
in interfaceObjectFloatMap<K>
-
select
public ObjectFloatHashMapWithHashingStrategy<K> select(ObjectFloatPredicate<? super K> predicate)
- Specified by:
select
in interfaceMutableObjectFloatMap<K>
- Specified by:
select
in interfaceObjectFloatMap<K>
-
reject
public ObjectFloatHashMapWithHashingStrategy<K> reject(ObjectFloatPredicate<? super K> predicate)
- Specified by:
reject
in interfaceMutableObjectFloatMap<K>
- Specified by:
reject
in interfaceObjectFloatMap<K>
-
select
public MutableFloatCollection select(FloatPredicate predicate)
- Specified by:
select
in interfaceFloatIterable
- Specified by:
select
in interfaceMutableObjectFloatMap<K>
-
reject
public MutableFloatCollection reject(FloatPredicate predicate)
- Specified by:
reject
in interfaceFloatIterable
- Specified by:
reject
in interfaceMutableObjectFloatMap<K>
-
detectIfNone
public float detectIfNone(FloatPredicate predicate, float ifNone)
- Specified by:
detectIfNone
in interfaceFloatIterable
-
collect
public <V> MutableCollection<V> collect(FloatToObjectFunction<? extends V> function)
- Specified by:
collect
in interfaceFloatIterable
- Specified by:
collect
in interfaceMutableObjectFloatMap<K>
-
count
public int count(FloatPredicate predicate)
- Specified by:
count
in interfaceFloatIterable
-
anySatisfy
public boolean anySatisfy(FloatPredicate predicate)
- Specified by:
anySatisfy
in interfaceFloatIterable
-
allSatisfy
public boolean allSatisfy(FloatPredicate predicate)
- Specified by:
allSatisfy
in interfaceFloatIterable
-
noneSatisfy
public boolean noneSatisfy(FloatPredicate predicate)
- Specified by:
noneSatisfy
in interfaceFloatIterable
-
injectInto
public <V> V injectInto(V injectedValue, ObjectFloatToObjectFunction<? super V,? extends V> function)
- Specified by:
injectInto
in interfaceFloatIterable
-
chunk
public RichIterable<FloatIterable> chunk(int size)
- Specified by:
chunk
in interfaceFloatIterable
-
sum
public double sum()
- Specified by:
sum
in interfaceFloatIterable
-
max
public float max()
- Specified by:
max
in interfaceFloatIterable
-
min
public float min()
- Specified by:
min
in interfaceFloatIterable
-
maxIfEmpty
public float maxIfEmpty(float defaultValue)
- Specified by:
maxIfEmpty
in interfaceFloatIterable
-
minIfEmpty
public float minIfEmpty(float defaultValue)
- Specified by:
minIfEmpty
in interfaceFloatIterable
-
average
public double average()
- Specified by:
average
in interfaceFloatIterable
-
median
public double median()
- Specified by:
median
in interfaceFloatIterable
-
toList
public MutableFloatList toList()
- Specified by:
toList
in interfaceFloatIterable
-
toSet
public MutableFloatSet toSet()
- Specified by:
toSet
in interfaceFloatIterable
-
toBag
public MutableFloatBag toBag()
- Specified by:
toBag
in interfaceFloatIterable
-
asLazy
public LazyFloatIterable asLazy()
- Specified by:
asLazy
in interfaceFloatIterable
-
toSortedArray
public float[] toSortedArray()
- Specified by:
toSortedArray
in interfaceFloatIterable
-
toSortedList
public MutableFloatList toSortedList()
- Specified by:
toSortedList
in interfaceFloatIterable
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-
keysView
public LazyIterable<K> keysView()
- Specified by:
keysView
in interfaceObjectFloatMap<K>
-
keyValuesView
public RichIterable<ObjectFloatPair<K>> keyValuesView()
- Specified by:
keyValuesView
in interfaceObjectFloatMap<K>
-
flipUniqueValues
public MutableFloatObjectMap<K> flipUniqueValues()
- Specified by:
flipUniqueValues
in interfaceMutableObjectFloatMap<K>
- Specified by:
flipUniqueValues
in interfaceObjectFloatMap<K>
-
trimToSize
public boolean trimToSize()
- Since:
- 12.0
-
compact
@Deprecated public void 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
public Set<K> keySet()
- Specified by:
keySet
in interfaceObjectFloatMap<K>
-
values
public MutableFloatCollection values()
- Specified by:
values
in interfaceObjectFloatMap<K>
-
-