Class UnmodifiableShortDoubleMap
- java.lang.Object
-
- org.eclipse.collections.impl.map.mutable.primitive.UnmodifiableShortDoubleMap
-
- All Implemented Interfaces:
Serializable
,DoubleIterable
,DoubleValuesMap
,MutableDoubleValuesMap
,MutableShortDoubleMap
,ShortDoubleMap
,PrimitiveIterable
public class UnmodifiableShortDoubleMap extends Object implements MutableShortDoubleMap, Serializable
This file was automatically generated from template file unmodifiablePrimitivePrimitiveMap.stg.- Since:
- 3.1.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnmodifiableShortDoubleMap(MutableShortDoubleMap map)
-
Method Summary
-
Methods inherited from interface org.eclipse.collections.api.DoubleIterable
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.DoubleValuesMap
tap
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableShortDoubleMap
withAllKeyValues
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.ShortDoubleMap
injectIntoKeyValue
-
-
-
-
Constructor Detail
-
UnmodifiableShortDoubleMap
public UnmodifiableShortDoubleMap(MutableShortDoubleMap map)
-
-
Method Detail
-
clear
public void clear()
- Specified by:
clear
in interfaceMutableDoubleValuesMap
-
put
public void put(short key, double value)
- Specified by:
put
in interfaceMutableShortDoubleMap
-
putPair
public void putPair(ShortDoublePair keyValuePair)
- Specified by:
putPair
in interfaceMutableShortDoubleMap
-
putAll
public void putAll(ShortDoubleMap map)
- Specified by:
putAll
in interfaceMutableShortDoubleMap
-
updateValues
public void updateValues(ShortDoubleToDoubleFunction function)
- Specified by:
updateValues
in interfaceMutableShortDoubleMap
-
removeKey
public void removeKey(short key)
- Specified by:
removeKey
in interfaceMutableShortDoubleMap
-
remove
public void remove(short key)
- Specified by:
remove
in interfaceMutableShortDoubleMap
-
removeKeyIfAbsent
public double removeKeyIfAbsent(short key, double value)
- Specified by:
removeKeyIfAbsent
in interfaceMutableShortDoubleMap
-
getIfAbsentPut
public double getIfAbsentPut(short key, double value)
- Specified by:
getIfAbsentPut
in interfaceMutableShortDoubleMap
-
getAndPut
public double getAndPut(short key, double putValue, double defaultValue)
- Specified by:
getAndPut
in interfaceMutableShortDoubleMap
-
getIfAbsentPut
public double getIfAbsentPut(short key, DoubleFunction0 function)
- Specified by:
getIfAbsentPut
in interfaceMutableShortDoubleMap
-
getIfAbsentPutWithKey
public double getIfAbsentPutWithKey(short key, ShortToDoubleFunction function)
- Specified by:
getIfAbsentPutWithKey
in interfaceMutableShortDoubleMap
-
getIfAbsentPutWith
public <P> double getIfAbsentPutWith(short key, DoubleFunction<? super P> function, P parameter)
- Specified by:
getIfAbsentPutWith
in interfaceMutableShortDoubleMap
-
updateValue
public double updateValue(short key, double initialValueIfAbsent, DoubleToDoubleFunction function)
- Specified by:
updateValue
in interfaceMutableShortDoubleMap
-
get
public double get(short key)
- Specified by:
get
in interfaceShortDoubleMap
-
getIfAbsent
public double getIfAbsent(short key, double ifAbsent)
- Specified by:
getIfAbsent
in interfaceShortDoubleMap
-
getOrThrow
public double getOrThrow(short key)
- Specified by:
getOrThrow
in interfaceShortDoubleMap
-
containsKey
public boolean containsKey(short key)
- Specified by:
containsKey
in interfaceShortDoubleMap
-
containsValue
public boolean containsValue(double value)
- Specified by:
containsValue
in interfaceDoubleValuesMap
-
forEachValue
public void forEachValue(DoubleProcedure procedure)
- Specified by:
forEachValue
in interfaceDoubleValuesMap
-
forEachKey
public void forEachKey(ShortProcedure procedure)
- Specified by:
forEachKey
in interfaceShortDoubleMap
-
forEachKeyValue
public void forEachKeyValue(ShortDoubleProcedure procedure)
- Specified by:
forEachKeyValue
in interfaceShortDoubleMap
-
keysView
public LazyShortIterable keysView()
- Specified by:
keysView
in interfaceShortDoubleMap
-
keyValuesView
public RichIterable<ShortDoublePair> keyValuesView()
- Specified by:
keyValuesView
in interfaceShortDoubleMap
-
flipUniqueValues
public MutableDoubleShortMap flipUniqueValues()
- Specified by:
flipUniqueValues
in interfaceMutableShortDoubleMap
- Specified by:
flipUniqueValues
in interfaceShortDoubleMap
-
select
public MutableShortDoubleMap select(ShortDoublePredicate predicate)
- Specified by:
select
in interfaceMutableShortDoubleMap
- Specified by:
select
in interfaceShortDoubleMap
-
reject
public MutableShortDoubleMap reject(ShortDoublePredicate predicate)
- Specified by:
reject
in interfaceMutableShortDoubleMap
- Specified by:
reject
in interfaceShortDoubleMap
-
doubleIterator
public MutableDoubleIterator doubleIterator()
- Specified by:
doubleIterator
in interfaceDoubleIterable
- Specified by:
doubleIterator
in interfaceMutableDoubleValuesMap
-
each
public void each(DoubleProcedure procedure)
- Specified by:
each
in interfaceDoubleIterable
- Since:
- 7.0.
-
count
public int count(DoublePredicate predicate)
- Specified by:
count
in interfaceDoubleIterable
-
anySatisfy
public boolean anySatisfy(DoublePredicate predicate)
- Specified by:
anySatisfy
in interfaceDoubleIterable
-
allSatisfy
public boolean allSatisfy(DoublePredicate predicate)
- Specified by:
allSatisfy
in interfaceDoubleIterable
-
noneSatisfy
public boolean noneSatisfy(DoublePredicate predicate)
- Specified by:
noneSatisfy
in interfaceDoubleIterable
-
select
public MutableDoubleBag select(DoublePredicate predicate)
- Specified by:
select
in interfaceDoubleIterable
- Specified by:
select
in interfaceDoubleValuesMap
- Specified by:
select
in interfaceMutableDoubleValuesMap
-
reject
public MutableDoubleBag reject(DoublePredicate predicate)
- Specified by:
reject
in interfaceDoubleIterable
- Specified by:
reject
in interfaceDoubleValuesMap
- Specified by:
reject
in interfaceMutableDoubleValuesMap
-
collect
public <V> MutableBag<V> collect(DoubleToObjectFunction<? extends V> function)
- Specified by:
collect
in interfaceDoubleIterable
- Specified by:
collect
in interfaceDoubleValuesMap
- Specified by:
collect
in interfaceMutableDoubleValuesMap
-
detectIfNone
public double detectIfNone(DoublePredicate predicate, double ifNone)
- Specified by:
detectIfNone
in interfaceDoubleIterable
-
sum
public double sum()
- Specified by:
sum
in interfaceDoubleIterable
-
max
public double max()
- Specified by:
max
in interfaceDoubleIterable
-
maxIfEmpty
public double maxIfEmpty(double defaultValue)
- Specified by:
maxIfEmpty
in interfaceDoubleIterable
-
min
public double min()
- Specified by:
min
in interfaceDoubleIterable
-
minIfEmpty
public double minIfEmpty(double defaultValue)
- Specified by:
minIfEmpty
in interfaceDoubleIterable
-
average
public double average()
- Specified by:
average
in interfaceDoubleIterable
-
median
public double median()
- Specified by:
median
in interfaceDoubleIterable
-
addToValue
public double addToValue(short key, double toBeAdded)
- Specified by:
addToValue
in interfaceMutableShortDoubleMap
-
toSortedArray
public double[] toSortedArray()
- Specified by:
toSortedArray
in interfaceDoubleIterable
-
toSortedList
public MutableDoubleList toSortedList()
- Specified by:
toSortedList
in interfaceDoubleIterable
-
toArray
public double[] toArray()
- Specified by:
toArray
in interfaceDoubleIterable
-
toArray
public double[] toArray(double[] target)
- Specified by:
toArray
in interfaceDoubleIterable
-
contains
public boolean contains(double value)
- Specified by:
contains
in interfaceDoubleIterable
-
containsAll
public boolean containsAll(double... source)
- Specified by:
containsAll
in interfaceDoubleIterable
-
containsAll
public boolean containsAll(DoubleIterable source)
- Specified by:
containsAll
in interfaceDoubleIterable
-
toList
public MutableDoubleList toList()
- Specified by:
toList
in interfaceDoubleIterable
-
toSet
public MutableDoubleSet toSet()
- Specified by:
toSet
in interfaceDoubleIterable
-
toBag
public MutableDoubleBag toBag()
- Specified by:
toBag
in interfaceDoubleIterable
-
asLazy
public LazyDoubleIterable asLazy()
- Specified by:
asLazy
in interfaceDoubleIterable
-
withKeyValue
public MutableShortDoubleMap withKeyValue(short key, double value)
- Specified by:
withKeyValue
in interfaceMutableShortDoubleMap
-
withoutKey
public MutableShortDoubleMap withoutKey(short key)
- Specified by:
withoutKey
in interfaceMutableShortDoubleMap
-
withoutAllKeys
public MutableShortDoubleMap withoutAllKeys(ShortIterable keys)
- Specified by:
withoutAllKeys
in interfaceMutableShortDoubleMap
-
asUnmodifiable
public MutableShortDoubleMap asUnmodifiable()
- Specified by:
asUnmodifiable
in interfaceMutableShortDoubleMap
-
asSynchronized
public MutableShortDoubleMap asSynchronized()
- Specified by:
asSynchronized
in interfaceMutableShortDoubleMap
-
toImmutable
public ImmutableShortDoubleMap toImmutable()
- Specified by:
toImmutable
in interfaceShortDoubleMap
-
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 MutableShortSet keySet()
- Specified by:
keySet
in interfaceShortDoubleMap
-
values
public MutableDoubleCollection values()
- Specified by:
values
in interfaceDoubleValuesMap
-
equals
public boolean equals(Object otherMap)
- Specified by:
equals
in interfaceShortDoubleMap
- Overrides:
equals
in classObject
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfaceShortDoubleMap
- Overrides:
hashCode
in classObject
-
toString
public String toString()
- Specified by:
toString
in interfacePrimitiveIterable
- Specified by:
toString
in interfaceShortDoubleMap
- 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, ObjectDoubleToObjectFunction<? super T,? extends T> function)
- Specified by:
injectInto
in interfaceDoubleIterable
-
chunk
public RichIterable<DoubleIterable> chunk(int size)
- Specified by:
chunk
in interfaceDoubleIterable
-
-