Class UnmodifiableLongDoubleMap
- java.lang.Object
-
- org.eclipse.collections.impl.map.mutable.primitive.UnmodifiableLongDoubleMap
-
- All Implemented Interfaces:
Serializable,DoubleIterable,DoubleValuesMap,LongDoubleMap,MutableDoubleValuesMap,MutableLongDoubleMap,PrimitiveIterable
public class UnmodifiableLongDoubleMap extends Object implements MutableLongDoubleMap, Serializable
This file was automatically generated from template file unmodifiablePrimitivePrimitiveMap.stg.- Since:
- 3.1.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnmodifiableLongDoubleMap(MutableLongDoubleMap 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.LongDoubleMap
injectIntoKeyValue
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableLongDoubleMap
withAllKeyValues
-
-
-
-
Constructor Detail
-
UnmodifiableLongDoubleMap
public UnmodifiableLongDoubleMap(MutableLongDoubleMap map)
-
-
Method Detail
-
clear
public void clear()
- Specified by:
clearin interfaceMutableDoubleValuesMap
-
put
public void put(long key, double value)- Specified by:
putin interfaceMutableLongDoubleMap
-
putPair
public void putPair(LongDoublePair keyValuePair)
- Specified by:
putPairin interfaceMutableLongDoubleMap
-
putAll
public void putAll(LongDoubleMap map)
- Specified by:
putAllin interfaceMutableLongDoubleMap
-
updateValues
public void updateValues(LongDoubleToDoubleFunction function)
- Specified by:
updateValuesin interfaceMutableLongDoubleMap
-
removeKey
public void removeKey(long key)
- Specified by:
removeKeyin interfaceMutableLongDoubleMap
-
remove
public void remove(long key)
- Specified by:
removein interfaceMutableLongDoubleMap
-
removeKeyIfAbsent
public double removeKeyIfAbsent(long key, double value)- Specified by:
removeKeyIfAbsentin interfaceMutableLongDoubleMap
-
getIfAbsentPut
public double getIfAbsentPut(long key, double value)- Specified by:
getIfAbsentPutin interfaceMutableLongDoubleMap
-
getAndPut
public double getAndPut(long key, double putValue, double defaultValue)- Specified by:
getAndPutin interfaceMutableLongDoubleMap
-
getIfAbsentPut
public double getIfAbsentPut(long key, DoubleFunction0 function)- Specified by:
getIfAbsentPutin interfaceMutableLongDoubleMap
-
getIfAbsentPutWithKey
public double getIfAbsentPutWithKey(long key, LongToDoubleFunction function)- Specified by:
getIfAbsentPutWithKeyin interfaceMutableLongDoubleMap
-
getIfAbsentPutWith
public <P> double getIfAbsentPutWith(long key, DoubleFunction<? super P> function, P parameter)- Specified by:
getIfAbsentPutWithin interfaceMutableLongDoubleMap
-
updateValue
public double updateValue(long key, double initialValueIfAbsent, DoubleToDoubleFunction function)- Specified by:
updateValuein interfaceMutableLongDoubleMap
-
get
public double get(long key)
- Specified by:
getin interfaceLongDoubleMap
-
getIfAbsent
public double getIfAbsent(long key, double ifAbsent)- Specified by:
getIfAbsentin interfaceLongDoubleMap
-
getOrThrow
public double getOrThrow(long key)
- Specified by:
getOrThrowin interfaceLongDoubleMap
-
containsKey
public boolean containsKey(long key)
- Specified by:
containsKeyin interfaceLongDoubleMap
-
containsValue
public boolean containsValue(double value)
- Specified by:
containsValuein interfaceDoubleValuesMap
-
forEachValue
public void forEachValue(DoubleProcedure procedure)
- Specified by:
forEachValuein interfaceDoubleValuesMap
-
forEachKey
public void forEachKey(LongProcedure procedure)
- Specified by:
forEachKeyin interfaceLongDoubleMap
-
forEachKeyValue
public void forEachKeyValue(LongDoubleProcedure procedure)
- Specified by:
forEachKeyValuein interfaceLongDoubleMap
-
keysView
public LazyLongIterable keysView()
- Specified by:
keysViewin interfaceLongDoubleMap
-
keyValuesView
public RichIterable<LongDoublePair> keyValuesView()
- Specified by:
keyValuesViewin interfaceLongDoubleMap
-
flipUniqueValues
public MutableDoubleLongMap flipUniqueValues()
- Specified by:
flipUniqueValuesin interfaceLongDoubleMap- Specified by:
flipUniqueValuesin interfaceMutableLongDoubleMap
-
select
public MutableLongDoubleMap select(LongDoublePredicate predicate)
- Specified by:
selectin interfaceLongDoubleMap- Specified by:
selectin interfaceMutableLongDoubleMap
-
reject
public MutableLongDoubleMap reject(LongDoublePredicate predicate)
- Specified by:
rejectin interfaceLongDoubleMap- Specified by:
rejectin interfaceMutableLongDoubleMap
-
doubleIterator
public MutableDoubleIterator doubleIterator()
- Specified by:
doubleIteratorin interfaceDoubleIterable- Specified by:
doubleIteratorin interfaceMutableDoubleValuesMap
-
each
public void each(DoubleProcedure procedure)
- Specified by:
eachin interfaceDoubleIterable- Since:
- 7.0.
-
count
public int count(DoublePredicate predicate)
- Specified by:
countin interfaceDoubleIterable
-
anySatisfy
public boolean anySatisfy(DoublePredicate predicate)
- Specified by:
anySatisfyin interfaceDoubleIterable
-
allSatisfy
public boolean allSatisfy(DoublePredicate predicate)
- Specified by:
allSatisfyin interfaceDoubleIterable
-
noneSatisfy
public boolean noneSatisfy(DoublePredicate predicate)
- Specified by:
noneSatisfyin interfaceDoubleIterable
-
select
public MutableDoubleBag select(DoublePredicate predicate)
- Specified by:
selectin interfaceDoubleIterable- Specified by:
selectin interfaceDoubleValuesMap- Specified by:
selectin interfaceMutableDoubleValuesMap
-
reject
public MutableDoubleBag reject(DoublePredicate predicate)
- Specified by:
rejectin interfaceDoubleIterable- Specified by:
rejectin interfaceDoubleValuesMap- Specified by:
rejectin interfaceMutableDoubleValuesMap
-
collect
public <V> MutableBag<V> collect(DoubleToObjectFunction<? extends V> function)
- Specified by:
collectin interfaceDoubleIterable- Specified by:
collectin interfaceDoubleValuesMap- Specified by:
collectin interfaceMutableDoubleValuesMap
-
detectIfNone
public double detectIfNone(DoublePredicate predicate, double ifNone)
- Specified by:
detectIfNonein interfaceDoubleIterable
-
sum
public double sum()
- Specified by:
sumin interfaceDoubleIterable
-
max
public double max()
- Specified by:
maxin interfaceDoubleIterable
-
maxIfEmpty
public double maxIfEmpty(double defaultValue)
- Specified by:
maxIfEmptyin interfaceDoubleIterable
-
min
public double min()
- Specified by:
minin interfaceDoubleIterable
-
minIfEmpty
public double minIfEmpty(double defaultValue)
- Specified by:
minIfEmptyin interfaceDoubleIterable
-
average
public double average()
- Specified by:
averagein interfaceDoubleIterable
-
median
public double median()
- Specified by:
medianin interfaceDoubleIterable
-
addToValue
public double addToValue(long key, double toBeAdded)- Specified by:
addToValuein interfaceMutableLongDoubleMap
-
toSortedArray
public double[] toSortedArray()
- Specified by:
toSortedArrayin interfaceDoubleIterable
-
toSortedList
public MutableDoubleList toSortedList()
- Specified by:
toSortedListin interfaceDoubleIterable
-
toArray
public double[] toArray()
- Specified by:
toArrayin interfaceDoubleIterable
-
toArray
public double[] toArray(double[] target)
- Specified by:
toArrayin interfaceDoubleIterable
-
contains
public boolean contains(double value)
- Specified by:
containsin interfaceDoubleIterable
-
containsAll
public boolean containsAll(double... source)
- Specified by:
containsAllin interfaceDoubleIterable
-
containsAll
public boolean containsAll(DoubleIterable source)
- Specified by:
containsAllin interfaceDoubleIterable
-
toList
public MutableDoubleList toList()
- Specified by:
toListin interfaceDoubleIterable
-
toSet
public MutableDoubleSet toSet()
- Specified by:
toSetin interfaceDoubleIterable
-
toBag
public MutableDoubleBag toBag()
- Specified by:
toBagin interfaceDoubleIterable
-
asLazy
public LazyDoubleIterable asLazy()
- Specified by:
asLazyin interfaceDoubleIterable
-
withKeyValue
public MutableLongDoubleMap withKeyValue(long key, double value)
- Specified by:
withKeyValuein interfaceMutableLongDoubleMap
-
withoutKey
public MutableLongDoubleMap withoutKey(long key)
- Specified by:
withoutKeyin interfaceMutableLongDoubleMap
-
withoutAllKeys
public MutableLongDoubleMap withoutAllKeys(LongIterable keys)
- Specified by:
withoutAllKeysin interfaceMutableLongDoubleMap
-
asUnmodifiable
public MutableLongDoubleMap asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableLongDoubleMap
-
asSynchronized
public MutableLongDoubleMap asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableLongDoubleMap
-
toImmutable
public ImmutableLongDoubleMap toImmutable()
- Specified by:
toImmutablein interfaceLongDoubleMap
-
size
public int size()
- Specified by:
sizein interfacePrimitiveIterable
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfacePrimitiveIterable
-
notEmpty
public boolean notEmpty()
- Specified by:
notEmptyin interfacePrimitiveIterable
-
keySet
public MutableLongSet keySet()
- Specified by:
keySetin interfaceLongDoubleMap
-
values
public MutableDoubleCollection values()
- Specified by:
valuesin interfaceDoubleValuesMap
-
equals
public boolean equals(Object otherMap)
- Specified by:
equalsin interfaceLongDoubleMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceLongDoubleMap- Overrides:
hashCodein classObject
-
toString
public String toString()
- Specified by:
toStringin interfaceLongDoubleMap- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classObject
-
makeString
public String makeString()
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
public String makeString(String separator)
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
public String makeString(String start, String separator, String end)
- Specified by:
makeStringin interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable)
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable, String separator)
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable, String start, String separator, String end)
- Specified by:
appendStringin interfacePrimitiveIterable
-
injectInto
public <T> T injectInto(T injectedValue, ObjectDoubleToObjectFunction<? super T,? extends T> function)- Specified by:
injectIntoin interfaceDoubleIterable
-
chunk
public RichIterable<DoubleIterable> chunk(int size)
- Specified by:
chunkin interfaceDoubleIterable
-
-