Class UnmodifiableIntFloatMap
- java.lang.Object
-
- org.eclipse.collections.impl.map.mutable.primitive.UnmodifiableIntFloatMap
-
- All Implemented Interfaces:
Serializable
,FloatIterable
,FloatValuesMap
,IntFloatMap
,MutableFloatValuesMap
,MutableIntFloatMap
,PrimitiveIterable
public class UnmodifiableIntFloatMap extends Object implements MutableIntFloatMap, Serializable
This file was automatically generated from template file unmodifiablePrimitivePrimitiveMap.stg.- Since:
- 3.1.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnmodifiableIntFloatMap(MutableIntFloatMap 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.FloatValuesMap
tap
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.IntFloatMap
injectIntoKeyValue
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableIntFloatMap
withAllKeyValues
-
-
-
-
Constructor Detail
-
UnmodifiableIntFloatMap
public UnmodifiableIntFloatMap(MutableIntFloatMap map)
-
-
Method Detail
-
clear
public void clear()
- Specified by:
clear
in interfaceMutableFloatValuesMap
-
put
public void put(int key, float value)
- Specified by:
put
in interfaceMutableIntFloatMap
-
putPair
public void putPair(IntFloatPair keyValuePair)
- Specified by:
putPair
in interfaceMutableIntFloatMap
-
putAll
public void putAll(IntFloatMap map)
- Specified by:
putAll
in interfaceMutableIntFloatMap
-
updateValues
public void updateValues(IntFloatToFloatFunction function)
- Specified by:
updateValues
in interfaceMutableIntFloatMap
-
removeKey
public void removeKey(int key)
- Specified by:
removeKey
in interfaceMutableIntFloatMap
-
remove
public void remove(int key)
- Specified by:
remove
in interfaceMutableIntFloatMap
-
removeKeyIfAbsent
public float removeKeyIfAbsent(int key, float value)
- Specified by:
removeKeyIfAbsent
in interfaceMutableIntFloatMap
-
getIfAbsentPut
public float getIfAbsentPut(int key, float value)
- Specified by:
getIfAbsentPut
in interfaceMutableIntFloatMap
-
getAndPut
public float getAndPut(int key, float putValue, float defaultValue)
- Specified by:
getAndPut
in interfaceMutableIntFloatMap
-
getIfAbsentPut
public float getIfAbsentPut(int key, FloatFunction0 function)
- Specified by:
getIfAbsentPut
in interfaceMutableIntFloatMap
-
getIfAbsentPutWithKey
public float getIfAbsentPutWithKey(int key, IntToFloatFunction function)
- Specified by:
getIfAbsentPutWithKey
in interfaceMutableIntFloatMap
-
getIfAbsentPutWith
public <P> float getIfAbsentPutWith(int key, FloatFunction<? super P> function, P parameter)
- Specified by:
getIfAbsentPutWith
in interfaceMutableIntFloatMap
-
updateValue
public float updateValue(int key, float initialValueIfAbsent, FloatToFloatFunction function)
- Specified by:
updateValue
in interfaceMutableIntFloatMap
-
get
public float get(int key)
- Specified by:
get
in interfaceIntFloatMap
-
getIfAbsent
public float getIfAbsent(int key, float ifAbsent)
- Specified by:
getIfAbsent
in interfaceIntFloatMap
-
getOrThrow
public float getOrThrow(int key)
- Specified by:
getOrThrow
in interfaceIntFloatMap
-
containsKey
public boolean containsKey(int key)
- Specified by:
containsKey
in interfaceIntFloatMap
-
containsValue
public boolean containsValue(float value)
- Specified by:
containsValue
in interfaceFloatValuesMap
-
forEachValue
public void forEachValue(FloatProcedure procedure)
- Specified by:
forEachValue
in interfaceFloatValuesMap
-
forEachKey
public void forEachKey(IntProcedure procedure)
- Specified by:
forEachKey
in interfaceIntFloatMap
-
forEachKeyValue
public void forEachKeyValue(IntFloatProcedure procedure)
- Specified by:
forEachKeyValue
in interfaceIntFloatMap
-
keysView
public LazyIntIterable keysView()
- Specified by:
keysView
in interfaceIntFloatMap
-
keyValuesView
public RichIterable<IntFloatPair> keyValuesView()
- Specified by:
keyValuesView
in interfaceIntFloatMap
-
flipUniqueValues
public MutableFloatIntMap flipUniqueValues()
- Specified by:
flipUniqueValues
in interfaceIntFloatMap
- Specified by:
flipUniqueValues
in interfaceMutableIntFloatMap
-
select
public MutableIntFloatMap select(IntFloatPredicate predicate)
- Specified by:
select
in interfaceIntFloatMap
- Specified by:
select
in interfaceMutableIntFloatMap
-
reject
public MutableIntFloatMap reject(IntFloatPredicate predicate)
- Specified by:
reject
in interfaceIntFloatMap
- Specified by:
reject
in interfaceMutableIntFloatMap
-
floatIterator
public MutableFloatIterator floatIterator()
- Specified by:
floatIterator
in interfaceFloatIterable
- Specified by:
floatIterator
in interfaceMutableFloatValuesMap
-
each
public void each(FloatProcedure procedure)
- Specified by:
each
in interfaceFloatIterable
- Since:
- 7.0.
-
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
-
select
public MutableFloatBag select(FloatPredicate predicate)
- Specified by:
select
in interfaceFloatIterable
- Specified by:
select
in interfaceFloatValuesMap
- Specified by:
select
in interfaceMutableFloatValuesMap
-
reject
public MutableFloatBag reject(FloatPredicate predicate)
- Specified by:
reject
in interfaceFloatIterable
- Specified by:
reject
in interfaceFloatValuesMap
- Specified by:
reject
in interfaceMutableFloatValuesMap
-
collect
public <V> MutableBag<V> collect(FloatToObjectFunction<? extends V> function)
- Specified by:
collect
in interfaceFloatIterable
- Specified by:
collect
in interfaceFloatValuesMap
- Specified by:
collect
in interfaceMutableFloatValuesMap
-
detectIfNone
public float detectIfNone(FloatPredicate predicate, float ifNone)
- Specified by:
detectIfNone
in interfaceFloatIterable
-
sum
public double sum()
- Specified by:
sum
in interfaceFloatIterable
-
max
public float max()
- Specified by:
max
in interfaceFloatIterable
-
maxIfEmpty
public float maxIfEmpty(float defaultValue)
- Specified by:
maxIfEmpty
in interfaceFloatIterable
-
min
public float min()
- Specified by:
min
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
-
addToValue
public float addToValue(int key, float toBeAdded)
- Specified by:
addToValue
in interfaceMutableIntFloatMap
-
toSortedArray
public float[] toSortedArray()
- Specified by:
toSortedArray
in interfaceFloatIterable
-
toSortedList
public MutableFloatList toSortedList()
- Specified by:
toSortedList
in interfaceFloatIterable
-
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
-
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
-
withKeyValue
public MutableIntFloatMap withKeyValue(int key, float value)
- Specified by:
withKeyValue
in interfaceMutableIntFloatMap
-
withoutKey
public MutableIntFloatMap withoutKey(int key)
- Specified by:
withoutKey
in interfaceMutableIntFloatMap
-
withoutAllKeys
public MutableIntFloatMap withoutAllKeys(IntIterable keys)
- Specified by:
withoutAllKeys
in interfaceMutableIntFloatMap
-
asUnmodifiable
public MutableIntFloatMap asUnmodifiable()
- Specified by:
asUnmodifiable
in interfaceMutableIntFloatMap
-
asSynchronized
public MutableIntFloatMap asSynchronized()
- Specified by:
asSynchronized
in interfaceMutableIntFloatMap
-
toImmutable
public ImmutableIntFloatMap toImmutable()
- Specified by:
toImmutable
in interfaceIntFloatMap
-
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
-
keySet
public MutableIntSet keySet()
- Specified by:
keySet
in interfaceIntFloatMap
-
values
public MutableFloatCollection values()
- Specified by:
values
in interfaceFloatValuesMap
-
equals
public boolean equals(Object otherMap)
- Specified by:
equals
in interfaceIntFloatMap
- Overrides:
equals
in classObject
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfaceIntFloatMap
- Overrides:
hashCode
in classObject
-
toString
public String toString()
- Specified by:
toString
in interfaceIntFloatMap
- Specified by:
toString
in interfacePrimitiveIterable
- Overrides:
toString
in classObject
-
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
-
injectInto
public <T> T injectInto(T injectedValue, ObjectFloatToObjectFunction<? super T,? extends T> function)
- Specified by:
injectInto
in interfaceFloatIterable
-
chunk
public RichIterable<FloatIterable> chunk(int size)
- Specified by:
chunk
in interfaceFloatIterable
-
-