Class UnmodifiableIntDoubleMap
- java.lang.Object
-
- org.eclipse.collections.impl.map.mutable.primitive.UnmodifiableIntDoubleMap
-
- All Implemented Interfaces:
Serializable
,DoubleIterable
,DoubleValuesMap
,IntDoubleMap
,MutableDoubleValuesMap
,MutableIntDoubleMap
,PrimitiveIterable
public class UnmodifiableIntDoubleMap extends Object implements MutableIntDoubleMap, Serializable
This file was automatically generated from template file unmodifiablePrimitivePrimitiveMap.stg.- Since:
- 3.1.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnmodifiableIntDoubleMap(MutableIntDoubleMap 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.IntDoubleMap
injectIntoKeyValue
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableIntDoubleMap
withAllKeyValues
-
-
-
-
Constructor Detail
-
UnmodifiableIntDoubleMap
public UnmodifiableIntDoubleMap(MutableIntDoubleMap map)
-
-
Method Detail
-
clear
public void clear()
- Specified by:
clear
in interfaceMutableDoubleValuesMap
-
put
public void put(int key, double value)
- Specified by:
put
in interfaceMutableIntDoubleMap
-
putPair
public void putPair(IntDoublePair keyValuePair)
- Specified by:
putPair
in interfaceMutableIntDoubleMap
-
putAll
public void putAll(IntDoubleMap map)
- Specified by:
putAll
in interfaceMutableIntDoubleMap
-
updateValues
public void updateValues(IntDoubleToDoubleFunction function)
- Specified by:
updateValues
in interfaceMutableIntDoubleMap
-
removeKey
public void removeKey(int key)
- Specified by:
removeKey
in interfaceMutableIntDoubleMap
-
remove
public void remove(int key)
- Specified by:
remove
in interfaceMutableIntDoubleMap
-
removeKeyIfAbsent
public double removeKeyIfAbsent(int key, double value)
- Specified by:
removeKeyIfAbsent
in interfaceMutableIntDoubleMap
-
getIfAbsentPut
public double getIfAbsentPut(int key, double value)
- Specified by:
getIfAbsentPut
in interfaceMutableIntDoubleMap
-
getAndPut
public double getAndPut(int key, double putValue, double defaultValue)
- Specified by:
getAndPut
in interfaceMutableIntDoubleMap
-
getIfAbsentPut
public double getIfAbsentPut(int key, DoubleFunction0 function)
- Specified by:
getIfAbsentPut
in interfaceMutableIntDoubleMap
-
getIfAbsentPutWithKey
public double getIfAbsentPutWithKey(int key, IntToDoubleFunction function)
- Specified by:
getIfAbsentPutWithKey
in interfaceMutableIntDoubleMap
-
getIfAbsentPutWith
public <P> double getIfAbsentPutWith(int key, DoubleFunction<? super P> function, P parameter)
- Specified by:
getIfAbsentPutWith
in interfaceMutableIntDoubleMap
-
updateValue
public double updateValue(int key, double initialValueIfAbsent, DoubleToDoubleFunction function)
- Specified by:
updateValue
in interfaceMutableIntDoubleMap
-
get
public double get(int key)
- Specified by:
get
in interfaceIntDoubleMap
-
getIfAbsent
public double getIfAbsent(int key, double ifAbsent)
- Specified by:
getIfAbsent
in interfaceIntDoubleMap
-
getOrThrow
public double getOrThrow(int key)
- Specified by:
getOrThrow
in interfaceIntDoubleMap
-
containsKey
public boolean containsKey(int key)
- Specified by:
containsKey
in interfaceIntDoubleMap
-
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(IntProcedure procedure)
- Specified by:
forEachKey
in interfaceIntDoubleMap
-
forEachKeyValue
public void forEachKeyValue(IntDoubleProcedure procedure)
- Specified by:
forEachKeyValue
in interfaceIntDoubleMap
-
keysView
public LazyIntIterable keysView()
- Specified by:
keysView
in interfaceIntDoubleMap
-
keyValuesView
public RichIterable<IntDoublePair> keyValuesView()
- Specified by:
keyValuesView
in interfaceIntDoubleMap
-
flipUniqueValues
public MutableDoubleIntMap flipUniqueValues()
- Specified by:
flipUniqueValues
in interfaceIntDoubleMap
- Specified by:
flipUniqueValues
in interfaceMutableIntDoubleMap
-
select
public MutableIntDoubleMap select(IntDoublePredicate predicate)
- Specified by:
select
in interfaceIntDoubleMap
- Specified by:
select
in interfaceMutableIntDoubleMap
-
reject
public MutableIntDoubleMap reject(IntDoublePredicate predicate)
- Specified by:
reject
in interfaceIntDoubleMap
- Specified by:
reject
in interfaceMutableIntDoubleMap
-
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(int key, double toBeAdded)
- Specified by:
addToValue
in interfaceMutableIntDoubleMap
-
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 MutableIntDoubleMap withKeyValue(int key, double value)
- Specified by:
withKeyValue
in interfaceMutableIntDoubleMap
-
withoutKey
public MutableIntDoubleMap withoutKey(int key)
- Specified by:
withoutKey
in interfaceMutableIntDoubleMap
-
withoutAllKeys
public MutableIntDoubleMap withoutAllKeys(IntIterable keys)
- Specified by:
withoutAllKeys
in interfaceMutableIntDoubleMap
-
asUnmodifiable
public MutableIntDoubleMap asUnmodifiable()
- Specified by:
asUnmodifiable
in interfaceMutableIntDoubleMap
-
asSynchronized
public MutableIntDoubleMap asSynchronized()
- Specified by:
asSynchronized
in interfaceMutableIntDoubleMap
-
toImmutable
public ImmutableIntDoubleMap toImmutable()
- Specified by:
toImmutable
in interfaceIntDoubleMap
-
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 interfaceIntDoubleMap
-
values
public MutableDoubleCollection values()
- Specified by:
values
in interfaceDoubleValuesMap
-
equals
public boolean equals(Object otherMap)
- Specified by:
equals
in interfaceIntDoubleMap
- Overrides:
equals
in classObject
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfaceIntDoubleMap
- Overrides:
hashCode
in classObject
-
toString
public String toString()
- Specified by:
toString
in interfaceIntDoubleMap
- 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, ObjectDoubleToObjectFunction<? super T,? extends T> function)
- Specified by:
injectInto
in interfaceDoubleIterable
-
chunk
public RichIterable<DoubleIterable> chunk(int size)
- Specified by:
chunk
in interfaceDoubleIterable
-
-