Class UnmodifiableDoubleByteMap
- java.lang.Object
-
- org.eclipse.collections.impl.map.mutable.primitive.UnmodifiableDoubleByteMap
-
- All Implemented Interfaces:
Serializable
,ByteIterable
,ByteValuesMap
,DoubleByteMap
,MutableByteValuesMap
,MutableDoubleByteMap
,PrimitiveIterable
public class UnmodifiableDoubleByteMap extends Object implements MutableDoubleByteMap, Serializable
This file was automatically generated from template file unmodifiablePrimitivePrimitiveMap.stg.- Since:
- 3.1.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnmodifiableDoubleByteMap(MutableDoubleByteMap map)
-
Method Summary
-
Methods inherited from interface org.eclipse.collections.api.ByteIterable
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.ByteValuesMap
tap
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.DoubleByteMap
injectIntoKeyValue
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableDoubleByteMap
withAllKeyValues
-
-
-
-
Constructor Detail
-
UnmodifiableDoubleByteMap
public UnmodifiableDoubleByteMap(MutableDoubleByteMap map)
-
-
Method Detail
-
clear
public void clear()
- Specified by:
clear
in interfaceMutableByteValuesMap
-
put
public void put(double key, byte value)
- Specified by:
put
in interfaceMutableDoubleByteMap
-
putPair
public void putPair(DoubleBytePair keyValuePair)
- Specified by:
putPair
in interfaceMutableDoubleByteMap
-
putAll
public void putAll(DoubleByteMap map)
- Specified by:
putAll
in interfaceMutableDoubleByteMap
-
updateValues
public void updateValues(DoubleByteToByteFunction function)
- Specified by:
updateValues
in interfaceMutableDoubleByteMap
-
removeKey
public void removeKey(double key)
- Specified by:
removeKey
in interfaceMutableDoubleByteMap
-
remove
public void remove(double key)
- Specified by:
remove
in interfaceMutableDoubleByteMap
-
removeKeyIfAbsent
public byte removeKeyIfAbsent(double key, byte value)
- Specified by:
removeKeyIfAbsent
in interfaceMutableDoubleByteMap
-
getIfAbsentPut
public byte getIfAbsentPut(double key, byte value)
- Specified by:
getIfAbsentPut
in interfaceMutableDoubleByteMap
-
getAndPut
public byte getAndPut(double key, byte putValue, byte defaultValue)
- Specified by:
getAndPut
in interfaceMutableDoubleByteMap
-
getIfAbsentPut
public byte getIfAbsentPut(double key, ByteFunction0 function)
- Specified by:
getIfAbsentPut
in interfaceMutableDoubleByteMap
-
getIfAbsentPutWithKey
public byte getIfAbsentPutWithKey(double key, DoubleToByteFunction function)
- Specified by:
getIfAbsentPutWithKey
in interfaceMutableDoubleByteMap
-
getIfAbsentPutWith
public <P> byte getIfAbsentPutWith(double key, ByteFunction<? super P> function, P parameter)
- Specified by:
getIfAbsentPutWith
in interfaceMutableDoubleByteMap
-
updateValue
public byte updateValue(double key, byte initialValueIfAbsent, ByteToByteFunction function)
- Specified by:
updateValue
in interfaceMutableDoubleByteMap
-
get
public byte get(double key)
- Specified by:
get
in interfaceDoubleByteMap
-
getIfAbsent
public byte getIfAbsent(double key, byte ifAbsent)
- Specified by:
getIfAbsent
in interfaceDoubleByteMap
-
getOrThrow
public byte getOrThrow(double key)
- Specified by:
getOrThrow
in interfaceDoubleByteMap
-
containsKey
public boolean containsKey(double key)
- Specified by:
containsKey
in interfaceDoubleByteMap
-
containsValue
public boolean containsValue(byte value)
- Specified by:
containsValue
in interfaceByteValuesMap
-
forEachValue
public void forEachValue(ByteProcedure procedure)
- Specified by:
forEachValue
in interfaceByteValuesMap
-
forEachKey
public void forEachKey(DoubleProcedure procedure)
- Specified by:
forEachKey
in interfaceDoubleByteMap
-
forEachKeyValue
public void forEachKeyValue(DoubleByteProcedure procedure)
- Specified by:
forEachKeyValue
in interfaceDoubleByteMap
-
keysView
public LazyDoubleIterable keysView()
- Specified by:
keysView
in interfaceDoubleByteMap
-
keyValuesView
public RichIterable<DoubleBytePair> keyValuesView()
- Specified by:
keyValuesView
in interfaceDoubleByteMap
-
flipUniqueValues
public MutableByteDoubleMap flipUniqueValues()
- Specified by:
flipUniqueValues
in interfaceDoubleByteMap
- Specified by:
flipUniqueValues
in interfaceMutableDoubleByteMap
-
select
public MutableDoubleByteMap select(DoubleBytePredicate predicate)
- Specified by:
select
in interfaceDoubleByteMap
- Specified by:
select
in interfaceMutableDoubleByteMap
-
reject
public MutableDoubleByteMap reject(DoubleBytePredicate predicate)
- Specified by:
reject
in interfaceDoubleByteMap
- Specified by:
reject
in interfaceMutableDoubleByteMap
-
byteIterator
public MutableByteIterator byteIterator()
- Specified by:
byteIterator
in interfaceByteIterable
- Specified by:
byteIterator
in interfaceMutableByteValuesMap
-
each
public void each(ByteProcedure procedure)
- Specified by:
each
in interfaceByteIterable
- Since:
- 7.0.
-
count
public int count(BytePredicate predicate)
- Specified by:
count
in interfaceByteIterable
-
anySatisfy
public boolean anySatisfy(BytePredicate predicate)
- Specified by:
anySatisfy
in interfaceByteIterable
-
allSatisfy
public boolean allSatisfy(BytePredicate predicate)
- Specified by:
allSatisfy
in interfaceByteIterable
-
noneSatisfy
public boolean noneSatisfy(BytePredicate predicate)
- Specified by:
noneSatisfy
in interfaceByteIterable
-
select
public MutableByteBag select(BytePredicate predicate)
- Specified by:
select
in interfaceByteIterable
- Specified by:
select
in interfaceByteValuesMap
- Specified by:
select
in interfaceMutableByteValuesMap
-
reject
public MutableByteBag reject(BytePredicate predicate)
- Specified by:
reject
in interfaceByteIterable
- Specified by:
reject
in interfaceByteValuesMap
- Specified by:
reject
in interfaceMutableByteValuesMap
-
collect
public <V> MutableBag<V> collect(ByteToObjectFunction<? extends V> function)
- Specified by:
collect
in interfaceByteIterable
- Specified by:
collect
in interfaceByteValuesMap
- Specified by:
collect
in interfaceMutableByteValuesMap
-
detectIfNone
public byte detectIfNone(BytePredicate predicate, byte ifNone)
- Specified by:
detectIfNone
in interfaceByteIterable
-
sum
public long sum()
- Specified by:
sum
in interfaceByteIterable
-
max
public byte max()
- Specified by:
max
in interfaceByteIterable
-
maxIfEmpty
public byte maxIfEmpty(byte defaultValue)
- Specified by:
maxIfEmpty
in interfaceByteIterable
-
min
public byte min()
- Specified by:
min
in interfaceByteIterable
-
minIfEmpty
public byte minIfEmpty(byte defaultValue)
- Specified by:
minIfEmpty
in interfaceByteIterable
-
average
public double average()
- Specified by:
average
in interfaceByteIterable
-
median
public double median()
- Specified by:
median
in interfaceByteIterable
-
addToValue
public byte addToValue(double key, byte toBeAdded)
- Specified by:
addToValue
in interfaceMutableDoubleByteMap
-
toSortedArray
public byte[] toSortedArray()
- Specified by:
toSortedArray
in interfaceByteIterable
-
toSortedList
public MutableByteList toSortedList()
- Specified by:
toSortedList
in interfaceByteIterable
-
toArray
public byte[] toArray()
- Specified by:
toArray
in interfaceByteIterable
-
toArray
public byte[] toArray(byte[] target)
- Specified by:
toArray
in interfaceByteIterable
-
contains
public boolean contains(byte value)
- Specified by:
contains
in interfaceByteIterable
-
containsAll
public boolean containsAll(byte... source)
- Specified by:
containsAll
in interfaceByteIterable
-
containsAll
public boolean containsAll(ByteIterable source)
- Specified by:
containsAll
in interfaceByteIterable
-
toList
public MutableByteList toList()
- Specified by:
toList
in interfaceByteIterable
-
toSet
public MutableByteSet toSet()
- Specified by:
toSet
in interfaceByteIterable
-
toBag
public MutableByteBag toBag()
- Specified by:
toBag
in interfaceByteIterable
-
asLazy
public LazyByteIterable asLazy()
- Specified by:
asLazy
in interfaceByteIterable
-
withKeyValue
public MutableDoubleByteMap withKeyValue(double key, byte value)
- Specified by:
withKeyValue
in interfaceMutableDoubleByteMap
-
withoutKey
public MutableDoubleByteMap withoutKey(double key)
- Specified by:
withoutKey
in interfaceMutableDoubleByteMap
-
withoutAllKeys
public MutableDoubleByteMap withoutAllKeys(DoubleIterable keys)
- Specified by:
withoutAllKeys
in interfaceMutableDoubleByteMap
-
asUnmodifiable
public MutableDoubleByteMap asUnmodifiable()
- Specified by:
asUnmodifiable
in interfaceMutableDoubleByteMap
-
asSynchronized
public MutableDoubleByteMap asSynchronized()
- Specified by:
asSynchronized
in interfaceMutableDoubleByteMap
-
toImmutable
public ImmutableDoubleByteMap toImmutable()
- Specified by:
toImmutable
in interfaceDoubleByteMap
-
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 interfaceDoubleByteMap
-
values
public MutableByteCollection values()
- Specified by:
values
in interfaceByteValuesMap
-
equals
public boolean equals(Object otherMap)
- Specified by:
equals
in interfaceDoubleByteMap
- Overrides:
equals
in classObject
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfaceDoubleByteMap
- Overrides:
hashCode
in classObject
-
toString
public String toString()
- Specified by:
toString
in interfaceDoubleByteMap
- 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, ObjectByteToObjectFunction<? super T,? extends T> function)
- Specified by:
injectInto
in interfaceByteIterable
-
chunk
public RichIterable<ByteIterable> chunk(int size)
- Specified by:
chunk
in interfaceByteIterable
-
-