Class UnmodifiableLongShortMap
- java.lang.Object
-
- org.eclipse.collections.impl.map.mutable.primitive.UnmodifiableLongShortMap
-
- All Implemented Interfaces:
Serializable
,LongShortMap
,MutableLongShortMap
,MutableShortValuesMap
,ShortValuesMap
,PrimitiveIterable
,ShortIterable
public class UnmodifiableLongShortMap extends Object implements MutableLongShortMap, Serializable
This file was automatically generated from template file unmodifiablePrimitivePrimitiveMap.stg.- Since:
- 3.1.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnmodifiableLongShortMap(MutableLongShortMap map)
-
Method Summary
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.LongShortMap
injectIntoKeyValue
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableLongShortMap
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
-
UnmodifiableLongShortMap
public UnmodifiableLongShortMap(MutableLongShortMap map)
-
-
Method Detail
-
clear
public void clear()
- Specified by:
clear
in interfaceMutableShortValuesMap
-
put
public void put(long key, short value)
- Specified by:
put
in interfaceMutableLongShortMap
-
putPair
public void putPair(LongShortPair keyValuePair)
- Specified by:
putPair
in interfaceMutableLongShortMap
-
putAll
public void putAll(LongShortMap map)
- Specified by:
putAll
in interfaceMutableLongShortMap
-
updateValues
public void updateValues(LongShortToShortFunction function)
- Specified by:
updateValues
in interfaceMutableLongShortMap
-
removeKey
public void removeKey(long key)
- Specified by:
removeKey
in interfaceMutableLongShortMap
-
remove
public void remove(long key)
- Specified by:
remove
in interfaceMutableLongShortMap
-
removeKeyIfAbsent
public short removeKeyIfAbsent(long key, short value)
- Specified by:
removeKeyIfAbsent
in interfaceMutableLongShortMap
-
getIfAbsentPut
public short getIfAbsentPut(long key, short value)
- Specified by:
getIfAbsentPut
in interfaceMutableLongShortMap
-
getAndPut
public short getAndPut(long key, short putValue, short defaultValue)
- Specified by:
getAndPut
in interfaceMutableLongShortMap
-
getIfAbsentPut
public short getIfAbsentPut(long key, ShortFunction0 function)
- Specified by:
getIfAbsentPut
in interfaceMutableLongShortMap
-
getIfAbsentPutWithKey
public short getIfAbsentPutWithKey(long key, LongToShortFunction function)
- Specified by:
getIfAbsentPutWithKey
in interfaceMutableLongShortMap
-
getIfAbsentPutWith
public <P> short getIfAbsentPutWith(long key, ShortFunction<? super P> function, P parameter)
- Specified by:
getIfAbsentPutWith
in interfaceMutableLongShortMap
-
updateValue
public short updateValue(long key, short initialValueIfAbsent, ShortToShortFunction function)
- Specified by:
updateValue
in interfaceMutableLongShortMap
-
get
public short get(long key)
- Specified by:
get
in interfaceLongShortMap
-
getIfAbsent
public short getIfAbsent(long key, short ifAbsent)
- Specified by:
getIfAbsent
in interfaceLongShortMap
-
getOrThrow
public short getOrThrow(long key)
- Specified by:
getOrThrow
in interfaceLongShortMap
-
containsKey
public boolean containsKey(long key)
- Specified by:
containsKey
in interfaceLongShortMap
-
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(LongProcedure procedure)
- Specified by:
forEachKey
in interfaceLongShortMap
-
forEachKeyValue
public void forEachKeyValue(LongShortProcedure procedure)
- Specified by:
forEachKeyValue
in interfaceLongShortMap
-
keysView
public LazyLongIterable keysView()
- Specified by:
keysView
in interfaceLongShortMap
-
keyValuesView
public RichIterable<LongShortPair> keyValuesView()
- Specified by:
keyValuesView
in interfaceLongShortMap
-
flipUniqueValues
public MutableShortLongMap flipUniqueValues()
- Specified by:
flipUniqueValues
in interfaceLongShortMap
- Specified by:
flipUniqueValues
in interfaceMutableLongShortMap
-
select
public MutableLongShortMap select(LongShortPredicate predicate)
- Specified by:
select
in interfaceLongShortMap
- Specified by:
select
in interfaceMutableLongShortMap
-
reject
public MutableLongShortMap reject(LongShortPredicate predicate)
- Specified by:
reject
in interfaceLongShortMap
- Specified by:
reject
in interfaceMutableLongShortMap
-
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(long key, short toBeAdded)
- Specified by:
addToValue
in interfaceMutableLongShortMap
-
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 MutableLongShortMap withKeyValue(long key, short value)
- Specified by:
withKeyValue
in interfaceMutableLongShortMap
-
withoutKey
public MutableLongShortMap withoutKey(long key)
- Specified by:
withoutKey
in interfaceMutableLongShortMap
-
withoutAllKeys
public MutableLongShortMap withoutAllKeys(LongIterable keys)
- Specified by:
withoutAllKeys
in interfaceMutableLongShortMap
-
asUnmodifiable
public MutableLongShortMap asUnmodifiable()
- Specified by:
asUnmodifiable
in interfaceMutableLongShortMap
-
asSynchronized
public MutableLongShortMap asSynchronized()
- Specified by:
asSynchronized
in interfaceMutableLongShortMap
-
toImmutable
public ImmutableLongShortMap toImmutable()
- Specified by:
toImmutable
in interfaceLongShortMap
-
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 MutableLongSet keySet()
- Specified by:
keySet
in interfaceLongShortMap
-
values
public MutableShortCollection values()
- Specified by:
values
in interfaceShortValuesMap
-
equals
public boolean equals(Object otherMap)
- Specified by:
equals
in interfaceLongShortMap
- Overrides:
equals
in classObject
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfaceLongShortMap
- Overrides:
hashCode
in classObject
-
toString
public String toString()
- Specified by:
toString
in interfaceLongShortMap
- 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
-
-