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
allSatisfyKeyValue, 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:
clearin interfaceMutableIntValuesMap
-
put
public void put(float key, int value)- Specified by:
putin interfaceMutableFloatIntMap
-
putPair
public void putPair(FloatIntPair keyValuePair)
- Specified by:
putPairin interfaceMutableFloatIntMap
-
putAll
public void putAll(FloatIntMap map)
- Specified by:
putAllin interfaceMutableFloatIntMap
-
updateValues
public void updateValues(FloatIntToIntFunction function)
- Specified by:
updateValuesin interfaceMutableFloatIntMap
-
removeKey
public void removeKey(float key)
- Specified by:
removeKeyin interfaceMutableFloatIntMap
-
remove
public void remove(float key)
- Specified by:
removein interfaceMutableFloatIntMap
-
removeKeyIfAbsent
public int removeKeyIfAbsent(float key, int value)- Specified by:
removeKeyIfAbsentin interfaceMutableFloatIntMap
-
getIfAbsentPut
public int getIfAbsentPut(float key, int value)- Specified by:
getIfAbsentPutin interfaceMutableFloatIntMap
-
getAndPut
public int getAndPut(float key, int putValue, int defaultValue)- Specified by:
getAndPutin interfaceMutableFloatIntMap
-
getIfAbsentPut
public int getIfAbsentPut(float key, IntFunction0 function)- Specified by:
getIfAbsentPutin interfaceMutableFloatIntMap
-
getIfAbsentPutWithKey
public int getIfAbsentPutWithKey(float key, FloatToIntFunction function)- Specified by:
getIfAbsentPutWithKeyin interfaceMutableFloatIntMap
-
getIfAbsentPutWith
public <P> int getIfAbsentPutWith(float key, IntFunction<? super P> function, P parameter)- Specified by:
getIfAbsentPutWithin interfaceMutableFloatIntMap
-
updateValue
public int updateValue(float key, int initialValueIfAbsent, IntToIntFunction function)- Specified by:
updateValuein interfaceMutableFloatIntMap
-
get
public int get(float key)
- Specified by:
getin interfaceFloatIntMap
-
getIfAbsent
public int getIfAbsent(float key, int ifAbsent)- Specified by:
getIfAbsentin interfaceFloatIntMap
-
getOrThrow
public int getOrThrow(float key)
- Specified by:
getOrThrowin interfaceFloatIntMap
-
containsKey
public boolean containsKey(float key)
- Specified by:
containsKeyin interfaceFloatIntMap
-
containsValue
public boolean containsValue(int value)
- Specified by:
containsValuein interfaceIntValuesMap
-
forEachValue
public void forEachValue(IntProcedure procedure)
- Specified by:
forEachValuein interfaceIntValuesMap
-
forEachKey
public void forEachKey(FloatProcedure procedure)
- Specified by:
forEachKeyin interfaceFloatIntMap
-
forEachKeyValue
public void forEachKeyValue(FloatIntProcedure procedure)
- Specified by:
forEachKeyValuein interfaceFloatIntMap
-
keysView
public LazyFloatIterable keysView()
- Specified by:
keysViewin interfaceFloatIntMap
-
keyValuesView
public RichIterable<FloatIntPair> keyValuesView()
- Specified by:
keyValuesViewin interfaceFloatIntMap
-
flipUniqueValues
public MutableIntFloatMap flipUniqueValues()
- Specified by:
flipUniqueValuesin interfaceFloatIntMap- Specified by:
flipUniqueValuesin interfaceMutableFloatIntMap
-
select
public MutableFloatIntMap select(FloatIntPredicate predicate)
- Specified by:
selectin interfaceFloatIntMap- Specified by:
selectin interfaceMutableFloatIntMap
-
reject
public MutableFloatIntMap reject(FloatIntPredicate predicate)
- Specified by:
rejectin interfaceFloatIntMap- Specified by:
rejectin interfaceMutableFloatIntMap
-
intIterator
public MutableIntIterator intIterator()
- Specified by:
intIteratorin interfaceIntIterable- Specified by:
intIteratorin interfaceMutableIntValuesMap
-
each
public void each(IntProcedure procedure)
- Specified by:
eachin interfaceIntIterable- Since:
- 7.0.
-
count
public int count(IntPredicate predicate)
- Specified by:
countin interfaceIntIterable
-
anySatisfy
public boolean anySatisfy(IntPredicate predicate)
- Specified by:
anySatisfyin interfaceIntIterable
-
allSatisfy
public boolean allSatisfy(IntPredicate predicate)
- Specified by:
allSatisfyin interfaceIntIterable
-
noneSatisfy
public boolean noneSatisfy(IntPredicate predicate)
- Specified by:
noneSatisfyin interfaceIntIterable
-
select
public MutableIntBag select(IntPredicate predicate)
- Specified by:
selectin interfaceIntIterable- Specified by:
selectin interfaceIntValuesMap- Specified by:
selectin interfaceMutableIntValuesMap
-
reject
public MutableIntBag reject(IntPredicate predicate)
- Specified by:
rejectin interfaceIntIterable- Specified by:
rejectin interfaceIntValuesMap- Specified by:
rejectin interfaceMutableIntValuesMap
-
collect
public <V> MutableBag<V> collect(IntToObjectFunction<? extends V> function)
- Specified by:
collectin interfaceIntIterable- Specified by:
collectin interfaceIntValuesMap- Specified by:
collectin interfaceMutableIntValuesMap
-
detectIfNone
public int detectIfNone(IntPredicate predicate, int ifNone)
- Specified by:
detectIfNonein interfaceIntIterable
-
sum
public long sum()
- Specified by:
sumin interfaceIntIterable
-
max
public int max()
- Specified by:
maxin interfaceIntIterable
-
maxIfEmpty
public int maxIfEmpty(int defaultValue)
- Specified by:
maxIfEmptyin interfaceIntIterable
-
min
public int min()
- Specified by:
minin interfaceIntIterable
-
minIfEmpty
public int minIfEmpty(int defaultValue)
- Specified by:
minIfEmptyin interfaceIntIterable
-
average
public double average()
- Specified by:
averagein interfaceIntIterable
-
median
public double median()
- Specified by:
medianin interfaceIntIterable
-
addToValue
public int addToValue(float key, int toBeAdded)- Specified by:
addToValuein interfaceMutableFloatIntMap
-
toSortedArray
public int[] toSortedArray()
- Specified by:
toSortedArrayin interfaceIntIterable
-
toSortedList
public MutableIntList toSortedList()
- Specified by:
toSortedListin interfaceIntIterable
-
toArray
public int[] toArray()
- Specified by:
toArrayin interfaceIntIterable
-
toArray
public int[] toArray(int[] target)
- Specified by:
toArrayin interfaceIntIterable
-
contains
public boolean contains(int value)
- Specified by:
containsin interfaceIntIterable
-
containsAll
public boolean containsAll(int... source)
- Specified by:
containsAllin interfaceIntIterable
-
containsAll
public boolean containsAll(IntIterable source)
- Specified by:
containsAllin interfaceIntIterable
-
toList
public MutableIntList toList()
- Specified by:
toListin interfaceIntIterable
-
toSet
public MutableIntSet toSet()
- Specified by:
toSetin interfaceIntIterable
-
toBag
public MutableIntBag toBag()
- Specified by:
toBagin interfaceIntIterable
-
asLazy
public LazyIntIterable asLazy()
- Specified by:
asLazyin interfaceIntIterable
-
withKeyValue
public MutableFloatIntMap withKeyValue(float key, int value)
- Specified by:
withKeyValuein interfaceMutableFloatIntMap
-
withoutKey
public MutableFloatIntMap withoutKey(float key)
- Specified by:
withoutKeyin interfaceMutableFloatIntMap
-
withoutAllKeys
public MutableFloatIntMap withoutAllKeys(FloatIterable keys)
- Specified by:
withoutAllKeysin interfaceMutableFloatIntMap
-
asUnmodifiable
public MutableFloatIntMap asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableFloatIntMap
-
asSynchronized
public MutableFloatIntMap asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableFloatIntMap
-
toImmutable
public ImmutableFloatIntMap toImmutable()
- Specified by:
toImmutablein interfaceFloatIntMap
-
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 MutableFloatSet keySet()
- Specified by:
keySetin interfaceFloatIntMap
-
values
public MutableIntCollection values()
- Specified by:
valuesin interfaceIntValuesMap
-
equals
public boolean equals(Object otherMap)
- Specified by:
equalsin interfaceFloatIntMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceFloatIntMap- Overrides:
hashCodein classObject
-
toString
public String toString()
- Specified by:
toStringin interfaceFloatIntMap- 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, ObjectIntToObjectFunction<? super T,? extends T> function)- Specified by:
injectIntoin interfaceIntIterable
-
chunk
public RichIterable<IntIterable> chunk(int size)
- Specified by:
chunkin interfaceIntIterable
-
-