Class UnmodifiableFloatShortMap
- java.lang.Object
-
- org.eclipse.collections.impl.map.mutable.primitive.UnmodifiableFloatShortMap
-
- All Implemented Interfaces:
Serializable,FloatShortMap,MutableFloatShortMap,MutableShortValuesMap,ShortValuesMap,PrimitiveIterable,ShortIterable
public class UnmodifiableFloatShortMap extends Object implements MutableFloatShortMap, Serializable
This file was automatically generated from template file unmodifiablePrimitivePrimitiveMap.stg.- Since:
- 3.1.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnmodifiableFloatShortMap(MutableFloatShortMap map)
-
Method Summary
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.FloatShortMap
injectIntoKeyValue
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableFloatShortMap
withAllKeyValues
-
Methods inherited from interface org.eclipse.collections.api.ShortIterable
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.ShortValuesMap
tap
-
-
-
-
Constructor Detail
-
UnmodifiableFloatShortMap
public UnmodifiableFloatShortMap(MutableFloatShortMap map)
-
-
Method Detail
-
clear
public void clear()
- Specified by:
clearin interfaceMutableShortValuesMap
-
put
public void put(float key, short value)- Specified by:
putin interfaceMutableFloatShortMap
-
putPair
public void putPair(FloatShortPair keyValuePair)
- Specified by:
putPairin interfaceMutableFloatShortMap
-
putAll
public void putAll(FloatShortMap map)
- Specified by:
putAllin interfaceMutableFloatShortMap
-
updateValues
public void updateValues(FloatShortToShortFunction function)
- Specified by:
updateValuesin interfaceMutableFloatShortMap
-
removeKey
public void removeKey(float key)
- Specified by:
removeKeyin interfaceMutableFloatShortMap
-
remove
public void remove(float key)
- Specified by:
removein interfaceMutableFloatShortMap
-
removeKeyIfAbsent
public short removeKeyIfAbsent(float key, short value)- Specified by:
removeKeyIfAbsentin interfaceMutableFloatShortMap
-
getIfAbsentPut
public short getIfAbsentPut(float key, short value)- Specified by:
getIfAbsentPutin interfaceMutableFloatShortMap
-
getAndPut
public short getAndPut(float key, short putValue, short defaultValue)- Specified by:
getAndPutin interfaceMutableFloatShortMap
-
getIfAbsentPut
public short getIfAbsentPut(float key, ShortFunction0 function)- Specified by:
getIfAbsentPutin interfaceMutableFloatShortMap
-
getIfAbsentPutWithKey
public short getIfAbsentPutWithKey(float key, FloatToShortFunction function)- Specified by:
getIfAbsentPutWithKeyin interfaceMutableFloatShortMap
-
getIfAbsentPutWith
public <P> short getIfAbsentPutWith(float key, ShortFunction<? super P> function, P parameter)- Specified by:
getIfAbsentPutWithin interfaceMutableFloatShortMap
-
updateValue
public short updateValue(float key, short initialValueIfAbsent, ShortToShortFunction function)- Specified by:
updateValuein interfaceMutableFloatShortMap
-
get
public short get(float key)
- Specified by:
getin interfaceFloatShortMap
-
getIfAbsent
public short getIfAbsent(float key, short ifAbsent)- Specified by:
getIfAbsentin interfaceFloatShortMap
-
getOrThrow
public short getOrThrow(float key)
- Specified by:
getOrThrowin interfaceFloatShortMap
-
containsKey
public boolean containsKey(float key)
- Specified by:
containsKeyin interfaceFloatShortMap
-
containsValue
public boolean containsValue(short value)
- Specified by:
containsValuein interfaceShortValuesMap
-
forEachValue
public void forEachValue(ShortProcedure procedure)
- Specified by:
forEachValuein interfaceShortValuesMap
-
forEachKey
public void forEachKey(FloatProcedure procedure)
- Specified by:
forEachKeyin interfaceFloatShortMap
-
forEachKeyValue
public void forEachKeyValue(FloatShortProcedure procedure)
- Specified by:
forEachKeyValuein interfaceFloatShortMap
-
keysView
public LazyFloatIterable keysView()
- Specified by:
keysViewin interfaceFloatShortMap
-
keyValuesView
public RichIterable<FloatShortPair> keyValuesView()
- Specified by:
keyValuesViewin interfaceFloatShortMap
-
flipUniqueValues
public MutableShortFloatMap flipUniqueValues()
- Specified by:
flipUniqueValuesin interfaceFloatShortMap- Specified by:
flipUniqueValuesin interfaceMutableFloatShortMap
-
select
public MutableFloatShortMap select(FloatShortPredicate predicate)
- Specified by:
selectin interfaceFloatShortMap- Specified by:
selectin interfaceMutableFloatShortMap
-
reject
public MutableFloatShortMap reject(FloatShortPredicate predicate)
- Specified by:
rejectin interfaceFloatShortMap- Specified by:
rejectin interfaceMutableFloatShortMap
-
shortIterator
public MutableShortIterator shortIterator()
- Specified by:
shortIteratorin interfaceMutableShortValuesMap- Specified by:
shortIteratorin interfaceShortIterable
-
each
public void each(ShortProcedure procedure)
- Specified by:
eachin interfaceShortIterable- Since:
- 7.0.
-
count
public int count(ShortPredicate predicate)
- Specified by:
countin interfaceShortIterable
-
anySatisfy
public boolean anySatisfy(ShortPredicate predicate)
- Specified by:
anySatisfyin interfaceShortIterable
-
allSatisfy
public boolean allSatisfy(ShortPredicate predicate)
- Specified by:
allSatisfyin interfaceShortIterable
-
noneSatisfy
public boolean noneSatisfy(ShortPredicate predicate)
- Specified by:
noneSatisfyin interfaceShortIterable
-
select
public MutableShortBag select(ShortPredicate predicate)
- Specified by:
selectin interfaceMutableShortValuesMap- Specified by:
selectin interfaceShortIterable- Specified by:
selectin interfaceShortValuesMap
-
reject
public MutableShortBag reject(ShortPredicate predicate)
- Specified by:
rejectin interfaceMutableShortValuesMap- Specified by:
rejectin interfaceShortIterable- Specified by:
rejectin interfaceShortValuesMap
-
collect
public <V> MutableBag<V> collect(ShortToObjectFunction<? extends V> function)
- Specified by:
collectin interfaceMutableShortValuesMap- Specified by:
collectin interfaceShortIterable- Specified by:
collectin interfaceShortValuesMap
-
detectIfNone
public short detectIfNone(ShortPredicate predicate, short ifNone)
- Specified by:
detectIfNonein interfaceShortIterable
-
sum
public long sum()
- Specified by:
sumin interfaceShortIterable
-
max
public short max()
- Specified by:
maxin interfaceShortIterable
-
maxIfEmpty
public short maxIfEmpty(short defaultValue)
- Specified by:
maxIfEmptyin interfaceShortIterable
-
min
public short min()
- Specified by:
minin interfaceShortIterable
-
minIfEmpty
public short minIfEmpty(short defaultValue)
- Specified by:
minIfEmptyin interfaceShortIterable
-
average
public double average()
- Specified by:
averagein interfaceShortIterable
-
median
public double median()
- Specified by:
medianin interfaceShortIterable
-
addToValue
public short addToValue(float key, short toBeAdded)- Specified by:
addToValuein interfaceMutableFloatShortMap
-
toSortedArray
public short[] toSortedArray()
- Specified by:
toSortedArrayin interfaceShortIterable
-
toSortedList
public MutableShortList toSortedList()
- Specified by:
toSortedListin interfaceShortIterable
-
toArray
public short[] toArray()
- Specified by:
toArrayin interfaceShortIterable
-
toArray
public short[] toArray(short[] target)
- Specified by:
toArrayin interfaceShortIterable
-
contains
public boolean contains(short value)
- Specified by:
containsin interfaceShortIterable
-
containsAll
public boolean containsAll(short... source)
- Specified by:
containsAllin interfaceShortIterable
-
containsAll
public boolean containsAll(ShortIterable source)
- Specified by:
containsAllin interfaceShortIterable
-
toList
public MutableShortList toList()
- Specified by:
toListin interfaceShortIterable
-
toSet
public MutableShortSet toSet()
- Specified by:
toSetin interfaceShortIterable
-
toBag
public MutableShortBag toBag()
- Specified by:
toBagin interfaceShortIterable
-
asLazy
public LazyShortIterable asLazy()
- Specified by:
asLazyin interfaceShortIterable
-
withKeyValue
public MutableFloatShortMap withKeyValue(float key, short value)
- Specified by:
withKeyValuein interfaceMutableFloatShortMap
-
withoutKey
public MutableFloatShortMap withoutKey(float key)
- Specified by:
withoutKeyin interfaceMutableFloatShortMap
-
withoutAllKeys
public MutableFloatShortMap withoutAllKeys(FloatIterable keys)
- Specified by:
withoutAllKeysin interfaceMutableFloatShortMap
-
asUnmodifiable
public MutableFloatShortMap asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableFloatShortMap
-
asSynchronized
public MutableFloatShortMap asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableFloatShortMap
-
toImmutable
public ImmutableFloatShortMap toImmutable()
- Specified by:
toImmutablein interfaceFloatShortMap
-
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 interfaceFloatShortMap
-
values
public MutableShortCollection values()
- Specified by:
valuesin interfaceShortValuesMap
-
equals
public boolean equals(Object otherMap)
- Specified by:
equalsin interfaceFloatShortMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceFloatShortMap- Overrides:
hashCodein classObject
-
toString
public String toString()
- Specified by:
toStringin interfaceFloatShortMap- 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, ObjectShortToObjectFunction<? super T,? extends T> function)- Specified by:
injectIntoin interfaceShortIterable
-
chunk
public RichIterable<ShortIterable> chunk(int size)
- Specified by:
chunkin interfaceShortIterable
-
-