Class UnmodifiableIntShortMap
- java.lang.Object
-
- org.eclipse.collections.impl.map.mutable.primitive.UnmodifiableIntShortMap
-
- All Implemented Interfaces:
Serializable
,IntShortMap
,MutableIntShortMap
,MutableShortValuesMap
,ShortValuesMap
,PrimitiveIterable
,ShortIterable
public class UnmodifiableIntShortMap extends Object implements MutableIntShortMap, Serializable
This file was automatically generated from template file unmodifiablePrimitivePrimitiveMap.stg.- Since:
- 3.1.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnmodifiableIntShortMap(MutableIntShortMap map)
-
Method Summary
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.IntShortMap
injectIntoKeyValue
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableIntShortMap
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
-
UnmodifiableIntShortMap
public UnmodifiableIntShortMap(MutableIntShortMap map)
-
-
Method Detail
-
clear
public void clear()
- Specified by:
clear
in interfaceMutableShortValuesMap
-
put
public void put(int key, short value)
- Specified by:
put
in interfaceMutableIntShortMap
-
putPair
public void putPair(IntShortPair keyValuePair)
- Specified by:
putPair
in interfaceMutableIntShortMap
-
putAll
public void putAll(IntShortMap map)
- Specified by:
putAll
in interfaceMutableIntShortMap
-
updateValues
public void updateValues(IntShortToShortFunction function)
- Specified by:
updateValues
in interfaceMutableIntShortMap
-
removeKey
public void removeKey(int key)
- Specified by:
removeKey
in interfaceMutableIntShortMap
-
remove
public void remove(int key)
- Specified by:
remove
in interfaceMutableIntShortMap
-
removeKeyIfAbsent
public short removeKeyIfAbsent(int key, short value)
- Specified by:
removeKeyIfAbsent
in interfaceMutableIntShortMap
-
getIfAbsentPut
public short getIfAbsentPut(int key, short value)
- Specified by:
getIfAbsentPut
in interfaceMutableIntShortMap
-
getAndPut
public short getAndPut(int key, short putValue, short defaultValue)
- Specified by:
getAndPut
in interfaceMutableIntShortMap
-
getIfAbsentPut
public short getIfAbsentPut(int key, ShortFunction0 function)
- Specified by:
getIfAbsentPut
in interfaceMutableIntShortMap
-
getIfAbsentPutWithKey
public short getIfAbsentPutWithKey(int key, IntToShortFunction function)
- Specified by:
getIfAbsentPutWithKey
in interfaceMutableIntShortMap
-
getIfAbsentPutWith
public <P> short getIfAbsentPutWith(int key, ShortFunction<? super P> function, P parameter)
- Specified by:
getIfAbsentPutWith
in interfaceMutableIntShortMap
-
updateValue
public short updateValue(int key, short initialValueIfAbsent, ShortToShortFunction function)
- Specified by:
updateValue
in interfaceMutableIntShortMap
-
get
public short get(int key)
- Specified by:
get
in interfaceIntShortMap
-
getIfAbsent
public short getIfAbsent(int key, short ifAbsent)
- Specified by:
getIfAbsent
in interfaceIntShortMap
-
getOrThrow
public short getOrThrow(int key)
- Specified by:
getOrThrow
in interfaceIntShortMap
-
containsKey
public boolean containsKey(int key)
- Specified by:
containsKey
in interfaceIntShortMap
-
containsValue
public boolean containsValue(short value)
- Specified by:
containsValue
in interfaceShortValuesMap
-
forEachValue
public void forEachValue(ShortProcedure procedure)
- Specified by:
forEachValue
in interfaceShortValuesMap
-
forEachKey
public void forEachKey(IntProcedure procedure)
- Specified by:
forEachKey
in interfaceIntShortMap
-
forEachKeyValue
public void forEachKeyValue(IntShortProcedure procedure)
- Specified by:
forEachKeyValue
in interfaceIntShortMap
-
keysView
public LazyIntIterable keysView()
- Specified by:
keysView
in interfaceIntShortMap
-
keyValuesView
public RichIterable<IntShortPair> keyValuesView()
- Specified by:
keyValuesView
in interfaceIntShortMap
-
flipUniqueValues
public MutableShortIntMap flipUniqueValues()
- Specified by:
flipUniqueValues
in interfaceIntShortMap
- Specified by:
flipUniqueValues
in interfaceMutableIntShortMap
-
select
public MutableIntShortMap select(IntShortPredicate predicate)
- Specified by:
select
in interfaceIntShortMap
- Specified by:
select
in interfaceMutableIntShortMap
-
reject
public MutableIntShortMap reject(IntShortPredicate predicate)
- Specified by:
reject
in interfaceIntShortMap
- Specified by:
reject
in interfaceMutableIntShortMap
-
shortIterator
public MutableShortIterator shortIterator()
- Specified by:
shortIterator
in interfaceMutableShortValuesMap
- Specified by:
shortIterator
in interfaceShortIterable
-
each
public void each(ShortProcedure procedure)
- Specified by:
each
in interfaceShortIterable
- Since:
- 7.0.
-
count
public int count(ShortPredicate predicate)
- Specified by:
count
in interfaceShortIterable
-
anySatisfy
public boolean anySatisfy(ShortPredicate predicate)
- Specified by:
anySatisfy
in interfaceShortIterable
-
allSatisfy
public boolean allSatisfy(ShortPredicate predicate)
- Specified by:
allSatisfy
in interfaceShortIterable
-
noneSatisfy
public boolean noneSatisfy(ShortPredicate predicate)
- Specified by:
noneSatisfy
in interfaceShortIterable
-
select
public MutableShortBag select(ShortPredicate predicate)
- Specified by:
select
in interfaceMutableShortValuesMap
- Specified by:
select
in interfaceShortIterable
- Specified by:
select
in interfaceShortValuesMap
-
reject
public MutableShortBag reject(ShortPredicate predicate)
- Specified by:
reject
in interfaceMutableShortValuesMap
- Specified by:
reject
in interfaceShortIterable
- Specified by:
reject
in interfaceShortValuesMap
-
collect
public <V> MutableBag<V> collect(ShortToObjectFunction<? extends V> function)
- Specified by:
collect
in interfaceMutableShortValuesMap
- Specified by:
collect
in interfaceShortIterable
- Specified by:
collect
in interfaceShortValuesMap
-
detectIfNone
public short detectIfNone(ShortPredicate predicate, short ifNone)
- Specified by:
detectIfNone
in interfaceShortIterable
-
sum
public long sum()
- Specified by:
sum
in interfaceShortIterable
-
max
public short max()
- Specified by:
max
in interfaceShortIterable
-
maxIfEmpty
public short maxIfEmpty(short defaultValue)
- Specified by:
maxIfEmpty
in interfaceShortIterable
-
min
public short min()
- Specified by:
min
in interfaceShortIterable
-
minIfEmpty
public short minIfEmpty(short defaultValue)
- Specified by:
minIfEmpty
in interfaceShortIterable
-
average
public double average()
- Specified by:
average
in interfaceShortIterable
-
median
public double median()
- Specified by:
median
in interfaceShortIterable
-
addToValue
public short addToValue(int key, short toBeAdded)
- Specified by:
addToValue
in interfaceMutableIntShortMap
-
toSortedArray
public short[] toSortedArray()
- Specified by:
toSortedArray
in interfaceShortIterable
-
toSortedList
public MutableShortList toSortedList()
- Specified by:
toSortedList
in interfaceShortIterable
-
toArray
public short[] toArray()
- Specified by:
toArray
in interfaceShortIterable
-
toArray
public short[] toArray(short[] target)
- Specified by:
toArray
in interfaceShortIterable
-
contains
public boolean contains(short value)
- Specified by:
contains
in interfaceShortIterable
-
containsAll
public boolean containsAll(short... source)
- Specified by:
containsAll
in interfaceShortIterable
-
containsAll
public boolean containsAll(ShortIterable source)
- Specified by:
containsAll
in interfaceShortIterable
-
toList
public MutableShortList toList()
- Specified by:
toList
in interfaceShortIterable
-
toSet
public MutableShortSet toSet()
- Specified by:
toSet
in interfaceShortIterable
-
toBag
public MutableShortBag toBag()
- Specified by:
toBag
in interfaceShortIterable
-
asLazy
public LazyShortIterable asLazy()
- Specified by:
asLazy
in interfaceShortIterable
-
withKeyValue
public MutableIntShortMap withKeyValue(int key, short value)
- Specified by:
withKeyValue
in interfaceMutableIntShortMap
-
withoutKey
public MutableIntShortMap withoutKey(int key)
- Specified by:
withoutKey
in interfaceMutableIntShortMap
-
withoutAllKeys
public MutableIntShortMap withoutAllKeys(IntIterable keys)
- Specified by:
withoutAllKeys
in interfaceMutableIntShortMap
-
asUnmodifiable
public MutableIntShortMap asUnmodifiable()
- Specified by:
asUnmodifiable
in interfaceMutableIntShortMap
-
asSynchronized
public MutableIntShortMap asSynchronized()
- Specified by:
asSynchronized
in interfaceMutableIntShortMap
-
toImmutable
public ImmutableIntShortMap toImmutable()
- Specified by:
toImmutable
in interfaceIntShortMap
-
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 interfaceIntShortMap
-
values
public MutableShortCollection values()
- Specified by:
values
in interfaceShortValuesMap
-
equals
public boolean equals(Object otherMap)
- Specified by:
equals
in interfaceIntShortMap
- Overrides:
equals
in classObject
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfaceIntShortMap
- Overrides:
hashCode
in classObject
-
toString
public String toString()
- Specified by:
toString
in interfaceIntShortMap
- 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, ObjectShortToObjectFunction<? super T,? extends T> function)
- Specified by:
injectInto
in interfaceShortIterable
-
chunk
public RichIterable<ShortIterable> chunk(int size)
- Specified by:
chunk
in interfaceShortIterable
-
-