Class UnmodifiableObjectFloatMap<K>
- java.lang.Object
-
- org.eclipse.collections.impl.map.mutable.primitive.UnmodifiableObjectFloatMap<K>
-
- All Implemented Interfaces:
Serializable,FloatIterable,MutableObjectFloatMap<K>,ObjectFloatMap<K>,PrimitiveIterable
public class UnmodifiableObjectFloatMap<K> extends Object implements MutableObjectFloatMap<K>, Serializable
This file was automatically generated from template file unmodifiableObjectPrimitiveMap.stg.- Since:
- 3.2
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnmodifiableObjectFloatMap(MutableObjectFloatMap<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
tap, withAllKeyValues
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.ObjectFloatMap
allSatisfyKeyValue, injectIntoKeyValue
-
-
-
-
Constructor Detail
-
UnmodifiableObjectFloatMap
public UnmodifiableObjectFloatMap(MutableObjectFloatMap<K> map)
-
-
Method Detail
-
getAndPut
public float getAndPut(K key, float defaultValue, float putValue)
- Specified by:
getAndPutin interfaceMutableObjectFloatMap<K>
-
clear
public void clear()
- Specified by:
clearin interfaceMutableObjectFloatMap<K>
-
put
public void put(K key, float value)
- Specified by:
putin interfaceMutableObjectFloatMap<K>
-
putPair
public void putPair(ObjectFloatPair<K> keyValuePair)
- Specified by:
putPairin interfaceMutableObjectFloatMap<K>
-
putAll
public void putAll(ObjectFloatMap<? extends K> map)
- Specified by:
putAllin interfaceMutableObjectFloatMap<K>
-
updateValues
public void updateValues(ObjectFloatToFloatFunction<? super K> function)
- Specified by:
updateValuesin interfaceMutableObjectFloatMap<K>
-
removeKey
public void removeKey(K key)
- Specified by:
removeKeyin interfaceMutableObjectFloatMap<K>
-
remove
public void remove(Object key)
- Specified by:
removein interfaceMutableObjectFloatMap<K>
-
removeKeyIfAbsent
public float removeKeyIfAbsent(K key, float value)
- Specified by:
removeKeyIfAbsentin interfaceMutableObjectFloatMap<K>
-
getIfAbsentPut
public float getIfAbsentPut(K key, float value)
- Specified by:
getIfAbsentPutin interfaceMutableObjectFloatMap<K>
-
getIfAbsentPut
public float getIfAbsentPut(K key, FloatFunction0 function)
- Specified by:
getIfAbsentPutin interfaceMutableObjectFloatMap<K>
-
getIfAbsentPutWithKey
public float getIfAbsentPutWithKey(K key, FloatFunction<? super K> function)
- Specified by:
getIfAbsentPutWithKeyin interfaceMutableObjectFloatMap<K>
-
getIfAbsentPutWith
public <P> float getIfAbsentPutWith(K key, FloatFunction<? super P> function, P parameter)
- Specified by:
getIfAbsentPutWithin interfaceMutableObjectFloatMap<K>
-
updateValue
public float updateValue(K key, float initialValueIfAbsent, FloatToFloatFunction function)
- Specified by:
updateValuein interfaceMutableObjectFloatMap<K>
-
addToValue
public float addToValue(K key, float toBeAdded)
- Specified by:
addToValuein interfaceMutableObjectFloatMap<K>
-
get
public float get(Object key)
- Specified by:
getin interfaceObjectFloatMap<K>
-
getOrThrow
public float getOrThrow(Object key)
- Specified by:
getOrThrowin interfaceObjectFloatMap<K>
-
getIfAbsent
public float getIfAbsent(Object key, float ifAbsent)
- Specified by:
getIfAbsentin interfaceObjectFloatMap<K>
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKeyin interfaceObjectFloatMap<K>
-
containsValue
public boolean containsValue(float value)
- Specified by:
containsValuein interfaceObjectFloatMap<K>
-
forEachValue
public void forEachValue(FloatProcedure procedure)
- Specified by:
forEachValuein interfaceObjectFloatMap<K>
-
forEachKey
public void forEachKey(Procedure<? super K> procedure)
- Specified by:
forEachKeyin interfaceObjectFloatMap<K>
-
forEachKeyValue
public void forEachKeyValue(ObjectFloatProcedure<? super K> procedure)
- Specified by:
forEachKeyValuein interfaceObjectFloatMap<K>
-
select
public MutableObjectFloatMap<K> select(ObjectFloatPredicate<? super K> predicate)
- Specified by:
selectin interfaceMutableObjectFloatMap<K>- Specified by:
selectin interfaceObjectFloatMap<K>
-
reject
public MutableObjectFloatMap<K> reject(ObjectFloatPredicate<? super K> predicate)
- Specified by:
rejectin interfaceMutableObjectFloatMap<K>- Specified by:
rejectin interfaceObjectFloatMap<K>
-
floatIterator
public MutableFloatIterator floatIterator()
- Specified by:
floatIteratorin interfaceFloatIterable- Specified by:
floatIteratorin interfaceMutableObjectFloatMap<K>
-
each
public void each(FloatProcedure procedure)
- Specified by:
eachin interfaceFloatIterable- Since:
- 7.0.
-
count
public int count(FloatPredicate predicate)
- Specified by:
countin interfaceFloatIterable
-
anySatisfy
public boolean anySatisfy(FloatPredicate predicate)
- Specified by:
anySatisfyin interfaceFloatIterable
-
allSatisfy
public boolean allSatisfy(FloatPredicate predicate)
- Specified by:
allSatisfyin interfaceFloatIterable
-
noneSatisfy
public boolean noneSatisfy(FloatPredicate predicate)
- Specified by:
noneSatisfyin interfaceFloatIterable
-
select
public MutableFloatCollection select(FloatPredicate predicate)
- Specified by:
selectin interfaceFloatIterable- Specified by:
selectin interfaceMutableObjectFloatMap<K>
-
reject
public MutableFloatCollection reject(FloatPredicate predicate)
- Specified by:
rejectin interfaceFloatIterable- Specified by:
rejectin interfaceMutableObjectFloatMap<K>
-
detectIfNone
public float detectIfNone(FloatPredicate predicate, float ifNone)
- Specified by:
detectIfNonein interfaceFloatIterable
-
collect
public <V1> MutableCollection<V1> collect(FloatToObjectFunction<? extends V1> function)
- Specified by:
collectin interfaceFloatIterable- Specified by:
collectin interfaceMutableObjectFloatMap<K>
-
sum
public double sum()
- Specified by:
sumin interfaceFloatIterable
-
max
public float max()
- Specified by:
maxin interfaceFloatIterable
-
maxIfEmpty
public float maxIfEmpty(float defaultValue)
- Specified by:
maxIfEmptyin interfaceFloatIterable
-
min
public float min()
- Specified by:
minin 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
-
toSortedArray
public float[] toSortedArray()
- Specified by:
toSortedArrayin interfaceFloatIterable
-
toSortedList
public MutableFloatList toSortedList()
- Specified by:
toSortedListin interfaceFloatIterable
-
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
public boolean containsAll(FloatIterable source)
- Specified by:
containsAllin interfaceFloatIterable
-
toList
public MutableFloatList toList()
- Specified by:
toListin interfaceFloatIterable
-
toSet
public MutableFloatSet toSet()
- Specified by:
toSetin interfaceFloatIterable
-
toBag
public MutableFloatBag toBag()
- Specified by:
toBagin interfaceFloatIterable
-
asLazy
public LazyFloatIterable asLazy()
- Specified by:
asLazyin interfaceFloatIterable
-
withKeyValue
public MutableObjectFloatMap<K> withKeyValue(K key, float value)
- Specified by:
withKeyValuein interfaceMutableObjectFloatMap<K>
-
withoutKey
public MutableObjectFloatMap<K> withoutKey(K key)
- Specified by:
withoutKeyin interfaceMutableObjectFloatMap<K>
-
withoutAllKeys
public MutableObjectFloatMap<K> withoutAllKeys(Iterable<? extends K> keys)
- Specified by:
withoutAllKeysin interfaceMutableObjectFloatMap<K>
-
asUnmodifiable
public MutableObjectFloatMap<K> asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableObjectFloatMap<K>
-
asSynchronized
public MutableObjectFloatMap<K> asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableObjectFloatMap<K>
-
toImmutable
public ImmutableObjectFloatMap<K> toImmutable()
- Specified by:
toImmutablein interfaceObjectFloatMap<K>
-
size
public int size()
- Specified by:
sizein interfacePrimitiveIterable
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfacePrimitiveIterable
-
notEmpty
public boolean notEmpty()
- Specified by:
notEmptyin interfacePrimitiveIterable
-
keySet
public Set<K> keySet()
- Specified by:
keySetin interfaceObjectFloatMap<K>
-
values
public MutableFloatCollection values()
- Specified by:
valuesin interfaceObjectFloatMap<K>
-
keysView
public LazyIterable<K> keysView()
- Specified by:
keysViewin interfaceObjectFloatMap<K>
-
keyValuesView
public RichIterable<ObjectFloatPair<K>> keyValuesView()
- Specified by:
keyValuesViewin interfaceObjectFloatMap<K>
-
flipUniqueValues
public MutableFloatObjectMap<K> flipUniqueValues()
- Specified by:
flipUniqueValuesin interfaceMutableObjectFloatMap<K>- Specified by:
flipUniqueValuesin interfaceObjectFloatMap<K>
-
toString
public String toString()
- Specified by:
toStringin interfaceObjectFloatMap<K>- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classObject
-
makeString
public String makeString()
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
public String makeString(String separator)
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
public String makeString(String start, String separator, String end)
- Specified by:
makeStringin interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable)
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable, String separator)
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable, String start, String separator, String end)
- Specified by:
appendStringin interfacePrimitiveIterable
-
injectInto
public <T> T injectInto(T injectedValue, ObjectFloatToObjectFunction<? super T,? extends T> function)- Specified by:
injectIntoin interfaceFloatIterable
-
chunk
public RichIterable<FloatIterable> chunk(int size)
- Specified by:
chunkin interfaceFloatIterable
-
-