Class UnmodifiableDoubleDoubleMap
- java.lang.Object
-
- org.eclipse.collections.impl.map.mutable.primitive.UnmodifiableDoubleDoubleMap
-
- All Implemented Interfaces:
Serializable
,DoubleIterable
,DoubleDoubleMap
,DoubleValuesMap
,MutableDoubleDoubleMap
,MutableDoubleValuesMap
,PrimitiveIterable
public class UnmodifiableDoubleDoubleMap extends Object implements MutableDoubleDoubleMap, Serializable
This file was automatically generated from template file unmodifiablePrimitivePrimitiveMap.stg.- Since:
- 3.1.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnmodifiableDoubleDoubleMap(MutableDoubleDoubleMap map)
-
Method Summary
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.DoubleDoubleMap
injectIntoKeyValue
-
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.MutableDoubleDoubleMap
withAllKeyValues
-
-
-
-
Constructor Detail
-
UnmodifiableDoubleDoubleMap
public UnmodifiableDoubleDoubleMap(MutableDoubleDoubleMap map)
-
-
Method Detail
-
clear
public void clear()
- Specified by:
clear
in interfaceMutableDoubleValuesMap
-
put
public void put(double key, double value)
- Specified by:
put
in interfaceMutableDoubleDoubleMap
-
putPair
public void putPair(DoubleDoublePair keyValuePair)
- Specified by:
putPair
in interfaceMutableDoubleDoubleMap
-
putAll
public void putAll(DoubleDoubleMap map)
- Specified by:
putAll
in interfaceMutableDoubleDoubleMap
-
updateValues
public void updateValues(DoubleDoubleToDoubleFunction function)
- Specified by:
updateValues
in interfaceMutableDoubleDoubleMap
-
removeKey
public void removeKey(double key)
- Specified by:
removeKey
in interfaceMutableDoubleDoubleMap
-
remove
public void remove(double key)
- Specified by:
remove
in interfaceMutableDoubleDoubleMap
-
removeKeyIfAbsent
public double removeKeyIfAbsent(double key, double value)
- Specified by:
removeKeyIfAbsent
in interfaceMutableDoubleDoubleMap
-
getIfAbsentPut
public double getIfAbsentPut(double key, double value)
- Specified by:
getIfAbsentPut
in interfaceMutableDoubleDoubleMap
-
getAndPut
public double getAndPut(double key, double putValue, double defaultValue)
- Specified by:
getAndPut
in interfaceMutableDoubleDoubleMap
-
getIfAbsentPut
public double getIfAbsentPut(double key, DoubleFunction0 function)
- Specified by:
getIfAbsentPut
in interfaceMutableDoubleDoubleMap
-
getIfAbsentPutWithKey
public double getIfAbsentPutWithKey(double key, DoubleToDoubleFunction function)
- Specified by:
getIfAbsentPutWithKey
in interfaceMutableDoubleDoubleMap
-
getIfAbsentPutWith
public <P> double getIfAbsentPutWith(double key, DoubleFunction<? super P> function, P parameter)
- Specified by:
getIfAbsentPutWith
in interfaceMutableDoubleDoubleMap
-
updateValue
public double updateValue(double key, double initialValueIfAbsent, DoubleToDoubleFunction function)
- Specified by:
updateValue
in interfaceMutableDoubleDoubleMap
-
get
public double get(double key)
- Specified by:
get
in interfaceDoubleDoubleMap
-
getIfAbsent
public double getIfAbsent(double key, double ifAbsent)
- Specified by:
getIfAbsent
in interfaceDoubleDoubleMap
-
getOrThrow
public double getOrThrow(double key)
- Specified by:
getOrThrow
in interfaceDoubleDoubleMap
-
containsKey
public boolean containsKey(double key)
- Specified by:
containsKey
in interfaceDoubleDoubleMap
-
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(DoubleProcedure procedure)
- Specified by:
forEachKey
in interfaceDoubleDoubleMap
-
forEachKeyValue
public void forEachKeyValue(DoubleDoubleProcedure procedure)
- Specified by:
forEachKeyValue
in interfaceDoubleDoubleMap
-
keysView
public LazyDoubleIterable keysView()
- Specified by:
keysView
in interfaceDoubleDoubleMap
-
keyValuesView
public RichIterable<DoubleDoublePair> keyValuesView()
- Specified by:
keyValuesView
in interfaceDoubleDoubleMap
-
flipUniqueValues
public MutableDoubleDoubleMap flipUniqueValues()
- Specified by:
flipUniqueValues
in interfaceDoubleDoubleMap
- Specified by:
flipUniqueValues
in interfaceMutableDoubleDoubleMap
-
select
public MutableDoubleDoubleMap select(DoubleDoublePredicate predicate)
- Specified by:
select
in interfaceDoubleDoubleMap
- Specified by:
select
in interfaceMutableDoubleDoubleMap
-
reject
public MutableDoubleDoubleMap reject(DoubleDoublePredicate predicate)
- Specified by:
reject
in interfaceDoubleDoubleMap
- Specified by:
reject
in interfaceMutableDoubleDoubleMap
-
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(double key, double toBeAdded)
- Specified by:
addToValue
in interfaceMutableDoubleDoubleMap
-
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 MutableDoubleDoubleMap withKeyValue(double key, double value)
- Specified by:
withKeyValue
in interfaceMutableDoubleDoubleMap
-
withoutKey
public MutableDoubleDoubleMap withoutKey(double key)
- Specified by:
withoutKey
in interfaceMutableDoubleDoubleMap
-
withoutAllKeys
public MutableDoubleDoubleMap withoutAllKeys(DoubleIterable keys)
- Specified by:
withoutAllKeys
in interfaceMutableDoubleDoubleMap
-
asUnmodifiable
public MutableDoubleDoubleMap asUnmodifiable()
- Specified by:
asUnmodifiable
in interfaceMutableDoubleDoubleMap
-
asSynchronized
public MutableDoubleDoubleMap asSynchronized()
- Specified by:
asSynchronized
in interfaceMutableDoubleDoubleMap
-
toImmutable
public ImmutableDoubleDoubleMap toImmutable()
- Specified by:
toImmutable
in interfaceDoubleDoubleMap
-
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 MutableDoubleSet keySet()
- Specified by:
keySet
in interfaceDoubleDoubleMap
-
values
public MutableDoubleCollection values()
- Specified by:
values
in interfaceDoubleValuesMap
-
equals
public boolean equals(Object otherMap)
- Specified by:
equals
in interfaceDoubleDoubleMap
- Overrides:
equals
in classObject
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfaceDoubleDoubleMap
- Overrides:
hashCode
in classObject
-
toString
public String toString()
- Specified by:
toString
in interfaceDoubleDoubleMap
- 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
-
-