Class UnmodifiableFloatByteMap
- java.lang.Object
-
- org.eclipse.collections.impl.map.mutable.primitive.UnmodifiableFloatByteMap
-
- All Implemented Interfaces:
Serializable
,ByteIterable
,ByteValuesMap
,FloatByteMap
,MutableByteValuesMap
,MutableFloatByteMap
,PrimitiveIterable
public class UnmodifiableFloatByteMap extends Object implements MutableFloatByteMap, Serializable
This file was automatically generated from template file unmodifiablePrimitivePrimitiveMap.stg.- Since:
- 3.1.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnmodifiableFloatByteMap(MutableFloatByteMap 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.FloatByteMap
injectIntoKeyValue
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableFloatByteMap
withAllKeyValues
-
-
-
-
Constructor Detail
-
UnmodifiableFloatByteMap
public UnmodifiableFloatByteMap(MutableFloatByteMap map)
-
-
Method Detail
-
clear
public void clear()
- Specified by:
clear
in interfaceMutableByteValuesMap
-
put
public void put(float key, byte value)
- Specified by:
put
in interfaceMutableFloatByteMap
-
putPair
public void putPair(FloatBytePair keyValuePair)
- Specified by:
putPair
in interfaceMutableFloatByteMap
-
putAll
public void putAll(FloatByteMap map)
- Specified by:
putAll
in interfaceMutableFloatByteMap
-
updateValues
public void updateValues(FloatByteToByteFunction function)
- Specified by:
updateValues
in interfaceMutableFloatByteMap
-
removeKey
public void removeKey(float key)
- Specified by:
removeKey
in interfaceMutableFloatByteMap
-
remove
public void remove(float key)
- Specified by:
remove
in interfaceMutableFloatByteMap
-
removeKeyIfAbsent
public byte removeKeyIfAbsent(float key, byte value)
- Specified by:
removeKeyIfAbsent
in interfaceMutableFloatByteMap
-
getIfAbsentPut
public byte getIfAbsentPut(float key, byte value)
- Specified by:
getIfAbsentPut
in interfaceMutableFloatByteMap
-
getAndPut
public byte getAndPut(float key, byte putValue, byte defaultValue)
- Specified by:
getAndPut
in interfaceMutableFloatByteMap
-
getIfAbsentPut
public byte getIfAbsentPut(float key, ByteFunction0 function)
- Specified by:
getIfAbsentPut
in interfaceMutableFloatByteMap
-
getIfAbsentPutWithKey
public byte getIfAbsentPutWithKey(float key, FloatToByteFunction function)
- Specified by:
getIfAbsentPutWithKey
in interfaceMutableFloatByteMap
-
getIfAbsentPutWith
public <P> byte getIfAbsentPutWith(float key, ByteFunction<? super P> function, P parameter)
- Specified by:
getIfAbsentPutWith
in interfaceMutableFloatByteMap
-
updateValue
public byte updateValue(float key, byte initialValueIfAbsent, ByteToByteFunction function)
- Specified by:
updateValue
in interfaceMutableFloatByteMap
-
get
public byte get(float key)
- Specified by:
get
in interfaceFloatByteMap
-
getIfAbsent
public byte getIfAbsent(float key, byte ifAbsent)
- Specified by:
getIfAbsent
in interfaceFloatByteMap
-
getOrThrow
public byte getOrThrow(float key)
- Specified by:
getOrThrow
in interfaceFloatByteMap
-
containsKey
public boolean containsKey(float key)
- Specified by:
containsKey
in interfaceFloatByteMap
-
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(FloatProcedure procedure)
- Specified by:
forEachKey
in interfaceFloatByteMap
-
forEachKeyValue
public void forEachKeyValue(FloatByteProcedure procedure)
- Specified by:
forEachKeyValue
in interfaceFloatByteMap
-
keysView
public LazyFloatIterable keysView()
- Specified by:
keysView
in interfaceFloatByteMap
-
keyValuesView
public RichIterable<FloatBytePair> keyValuesView()
- Specified by:
keyValuesView
in interfaceFloatByteMap
-
flipUniqueValues
public MutableByteFloatMap flipUniqueValues()
- Specified by:
flipUniqueValues
in interfaceFloatByteMap
- Specified by:
flipUniqueValues
in interfaceMutableFloatByteMap
-
select
public MutableFloatByteMap select(FloatBytePredicate predicate)
- Specified by:
select
in interfaceFloatByteMap
- Specified by:
select
in interfaceMutableFloatByteMap
-
reject
public MutableFloatByteMap reject(FloatBytePredicate predicate)
- Specified by:
reject
in interfaceFloatByteMap
- Specified by:
reject
in interfaceMutableFloatByteMap
-
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(float key, byte toBeAdded)
- Specified by:
addToValue
in interfaceMutableFloatByteMap
-
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 MutableFloatByteMap withKeyValue(float key, byte value)
- Specified by:
withKeyValue
in interfaceMutableFloatByteMap
-
withoutKey
public MutableFloatByteMap withoutKey(float key)
- Specified by:
withoutKey
in interfaceMutableFloatByteMap
-
withoutAllKeys
public MutableFloatByteMap withoutAllKeys(FloatIterable keys)
- Specified by:
withoutAllKeys
in interfaceMutableFloatByteMap
-
asUnmodifiable
public MutableFloatByteMap asUnmodifiable()
- Specified by:
asUnmodifiable
in interfaceMutableFloatByteMap
-
asSynchronized
public MutableFloatByteMap asSynchronized()
- Specified by:
asSynchronized
in interfaceMutableFloatByteMap
-
toImmutable
public ImmutableFloatByteMap toImmutable()
- Specified by:
toImmutable
in interfaceFloatByteMap
-
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 MutableFloatSet keySet()
- Specified by:
keySet
in interfaceFloatByteMap
-
values
public MutableByteCollection values()
- Specified by:
values
in interfaceByteValuesMap
-
equals
public boolean equals(Object otherMap)
- Specified by:
equals
in interfaceFloatByteMap
- Overrides:
equals
in classObject
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfaceFloatByteMap
- Overrides:
hashCode
in classObject
-
toString
public String toString()
- Specified by:
toString
in interfaceFloatByteMap
- 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
-
-