Class UnmodifiableFloatIntMap
- java.lang.Object
-
- org.eclipse.collections.impl.map.mutable.primitive.UnmodifiableFloatIntMap
-
- All Implemented Interfaces:
Serializable
,IntIterable
,FloatIntMap
,IntValuesMap
,MutableFloatIntMap
,MutableIntValuesMap
,PrimitiveIterable
public class UnmodifiableFloatIntMap extends Object implements MutableFloatIntMap, Serializable
This file was automatically generated from template file unmodifiablePrimitivePrimitiveMap.stg.- Since:
- 3.1.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnmodifiableFloatIntMap(MutableFloatIntMap map)
-
Method Summary
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.FloatIntMap
injectIntoKeyValue
-
Methods inherited from interface org.eclipse.collections.api.IntIterable
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.IntValuesMap
tap
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableFloatIntMap
withAllKeyValues
-
-
-
-
Constructor Detail
-
UnmodifiableFloatIntMap
public UnmodifiableFloatIntMap(MutableFloatIntMap map)
-
-
Method Detail
-
clear
public void clear()
- Specified by:
clear
in interfaceMutableIntValuesMap
-
put
public void put(float key, int value)
- Specified by:
put
in interfaceMutableFloatIntMap
-
putPair
public void putPair(FloatIntPair keyValuePair)
- Specified by:
putPair
in interfaceMutableFloatIntMap
-
putAll
public void putAll(FloatIntMap map)
- Specified by:
putAll
in interfaceMutableFloatIntMap
-
updateValues
public void updateValues(FloatIntToIntFunction function)
- Specified by:
updateValues
in interfaceMutableFloatIntMap
-
removeKey
public void removeKey(float key)
- Specified by:
removeKey
in interfaceMutableFloatIntMap
-
remove
public void remove(float key)
- Specified by:
remove
in interfaceMutableFloatIntMap
-
removeKeyIfAbsent
public int removeKeyIfAbsent(float key, int value)
- Specified by:
removeKeyIfAbsent
in interfaceMutableFloatIntMap
-
getIfAbsentPut
public int getIfAbsentPut(float key, int value)
- Specified by:
getIfAbsentPut
in interfaceMutableFloatIntMap
-
getAndPut
public int getAndPut(float key, int putValue, int defaultValue)
- Specified by:
getAndPut
in interfaceMutableFloatIntMap
-
getIfAbsentPut
public int getIfAbsentPut(float key, IntFunction0 function)
- Specified by:
getIfAbsentPut
in interfaceMutableFloatIntMap
-
getIfAbsentPutWithKey
public int getIfAbsentPutWithKey(float key, FloatToIntFunction function)
- Specified by:
getIfAbsentPutWithKey
in interfaceMutableFloatIntMap
-
getIfAbsentPutWith
public <P> int getIfAbsentPutWith(float key, IntFunction<? super P> function, P parameter)
- Specified by:
getIfAbsentPutWith
in interfaceMutableFloatIntMap
-
updateValue
public int updateValue(float key, int initialValueIfAbsent, IntToIntFunction function)
- Specified by:
updateValue
in interfaceMutableFloatIntMap
-
get
public int get(float key)
- Specified by:
get
in interfaceFloatIntMap
-
getIfAbsent
public int getIfAbsent(float key, int ifAbsent)
- Specified by:
getIfAbsent
in interfaceFloatIntMap
-
getOrThrow
public int getOrThrow(float key)
- Specified by:
getOrThrow
in interfaceFloatIntMap
-
containsKey
public boolean containsKey(float key)
- Specified by:
containsKey
in interfaceFloatIntMap
-
containsValue
public boolean containsValue(int value)
- Specified by:
containsValue
in interfaceIntValuesMap
-
forEachValue
public void forEachValue(IntProcedure procedure)
- Specified by:
forEachValue
in interfaceIntValuesMap
-
forEachKey
public void forEachKey(FloatProcedure procedure)
- Specified by:
forEachKey
in interfaceFloatIntMap
-
forEachKeyValue
public void forEachKeyValue(FloatIntProcedure procedure)
- Specified by:
forEachKeyValue
in interfaceFloatIntMap
-
keysView
public LazyFloatIterable keysView()
- Specified by:
keysView
in interfaceFloatIntMap
-
keyValuesView
public RichIterable<FloatIntPair> keyValuesView()
- Specified by:
keyValuesView
in interfaceFloatIntMap
-
flipUniqueValues
public MutableIntFloatMap flipUniqueValues()
- Specified by:
flipUniqueValues
in interfaceFloatIntMap
- Specified by:
flipUniqueValues
in interfaceMutableFloatIntMap
-
select
public MutableFloatIntMap select(FloatIntPredicate predicate)
- Specified by:
select
in interfaceFloatIntMap
- Specified by:
select
in interfaceMutableFloatIntMap
-
reject
public MutableFloatIntMap reject(FloatIntPredicate predicate)
- Specified by:
reject
in interfaceFloatIntMap
- Specified by:
reject
in interfaceMutableFloatIntMap
-
intIterator
public MutableIntIterator intIterator()
- Specified by:
intIterator
in interfaceIntIterable
- Specified by:
intIterator
in interfaceMutableIntValuesMap
-
each
public void each(IntProcedure procedure)
- Specified by:
each
in interfaceIntIterable
- Since:
- 7.0.
-
count
public int count(IntPredicate predicate)
- Specified by:
count
in interfaceIntIterable
-
anySatisfy
public boolean anySatisfy(IntPredicate predicate)
- Specified by:
anySatisfy
in interfaceIntIterable
-
allSatisfy
public boolean allSatisfy(IntPredicate predicate)
- Specified by:
allSatisfy
in interfaceIntIterable
-
noneSatisfy
public boolean noneSatisfy(IntPredicate predicate)
- Specified by:
noneSatisfy
in interfaceIntIterable
-
select
public MutableIntBag select(IntPredicate predicate)
- Specified by:
select
in interfaceIntIterable
- Specified by:
select
in interfaceIntValuesMap
- Specified by:
select
in interfaceMutableIntValuesMap
-
reject
public MutableIntBag reject(IntPredicate predicate)
- Specified by:
reject
in interfaceIntIterable
- Specified by:
reject
in interfaceIntValuesMap
- Specified by:
reject
in interfaceMutableIntValuesMap
-
collect
public <V> MutableBag<V> collect(IntToObjectFunction<? extends V> function)
- Specified by:
collect
in interfaceIntIterable
- Specified by:
collect
in interfaceIntValuesMap
- Specified by:
collect
in interfaceMutableIntValuesMap
-
detectIfNone
public int detectIfNone(IntPredicate predicate, int ifNone)
- Specified by:
detectIfNone
in interfaceIntIterable
-
sum
public long sum()
- Specified by:
sum
in interfaceIntIterable
-
max
public int max()
- Specified by:
max
in interfaceIntIterable
-
maxIfEmpty
public int maxIfEmpty(int defaultValue)
- Specified by:
maxIfEmpty
in interfaceIntIterable
-
min
public int min()
- Specified by:
min
in interfaceIntIterable
-
minIfEmpty
public int minIfEmpty(int defaultValue)
- Specified by:
minIfEmpty
in interfaceIntIterable
-
average
public double average()
- Specified by:
average
in interfaceIntIterable
-
median
public double median()
- Specified by:
median
in interfaceIntIterable
-
addToValue
public int addToValue(float key, int toBeAdded)
- Specified by:
addToValue
in interfaceMutableFloatIntMap
-
toSortedArray
public int[] toSortedArray()
- Specified by:
toSortedArray
in interfaceIntIterable
-
toSortedList
public MutableIntList toSortedList()
- Specified by:
toSortedList
in interfaceIntIterable
-
toArray
public int[] toArray()
- Specified by:
toArray
in interfaceIntIterable
-
toArray
public int[] toArray(int[] target)
- Specified by:
toArray
in interfaceIntIterable
-
contains
public boolean contains(int value)
- Specified by:
contains
in interfaceIntIterable
-
containsAll
public boolean containsAll(int... source)
- Specified by:
containsAll
in interfaceIntIterable
-
containsAll
public boolean containsAll(IntIterable source)
- Specified by:
containsAll
in interfaceIntIterable
-
toList
public MutableIntList toList()
- Specified by:
toList
in interfaceIntIterable
-
toSet
public MutableIntSet toSet()
- Specified by:
toSet
in interfaceIntIterable
-
toBag
public MutableIntBag toBag()
- Specified by:
toBag
in interfaceIntIterable
-
asLazy
public LazyIntIterable asLazy()
- Specified by:
asLazy
in interfaceIntIterable
-
withKeyValue
public MutableFloatIntMap withKeyValue(float key, int value)
- Specified by:
withKeyValue
in interfaceMutableFloatIntMap
-
withoutKey
public MutableFloatIntMap withoutKey(float key)
- Specified by:
withoutKey
in interfaceMutableFloatIntMap
-
withoutAllKeys
public MutableFloatIntMap withoutAllKeys(FloatIterable keys)
- Specified by:
withoutAllKeys
in interfaceMutableFloatIntMap
-
asUnmodifiable
public MutableFloatIntMap asUnmodifiable()
- Specified by:
asUnmodifiable
in interfaceMutableFloatIntMap
-
asSynchronized
public MutableFloatIntMap asSynchronized()
- Specified by:
asSynchronized
in interfaceMutableFloatIntMap
-
toImmutable
public ImmutableFloatIntMap toImmutable()
- Specified by:
toImmutable
in interfaceFloatIntMap
-
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 MutableFloatSet keySet()
- Specified by:
keySet
in interfaceFloatIntMap
-
values
public MutableIntCollection values()
- Specified by:
values
in interfaceIntValuesMap
-
equals
public boolean equals(Object otherMap)
- Specified by:
equals
in interfaceFloatIntMap
- Overrides:
equals
in classObject
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfaceFloatIntMap
- Overrides:
hashCode
in classObject
-
toString
public String toString()
- Specified by:
toString
in interfaceFloatIntMap
- 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, ObjectIntToObjectFunction<? super T,? extends T> function)
- Specified by:
injectInto
in interfaceIntIterable
-
chunk
public RichIterable<IntIterable> chunk(int size)
- Specified by:
chunk
in interfaceIntIterable
-
-