Class CharByteHashMap
- java.lang.Object
-
- org.eclipse.collections.impl.primitive.AbstractByteIterable
-
- org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableByteValuesMap
-
- org.eclipse.collections.impl.map.mutable.primitive.CharByteHashMap
-
- All Implemented Interfaces:
Externalizable,Serializable,ByteIterable,ByteValuesMap,CharByteMap,MutableByteValuesMap,MutableCharByteMap,PrimitiveIterable,MutableCharKeysMap,CharKeysMap
public class CharByteHashMap extends AbstractMutableByteValuesMap implements MutableCharByteMap, Externalizable, MutableCharKeysMap
This file was automatically generated from template file primitivePrimitiveHashMap.stg.- Since:
- 3.0.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CharByteHashMap()CharByteHashMap(int initialCapacity)CharByteHashMap(CharByteMap map)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description byteaddToValue(char key, byte toBeAdded)MutableCharByteMapasSynchronized()MutableCharByteMapasUnmodifiable()MutableByteIteratorbyteIterator()voidclear()voidcompact()Deprecated.since 12.0 - UsetrimToSize()insteadbooleancontainsKey(char key)booleanequals(Object obj)MutableByteCharMapflipUniqueValues()voidforEachKey(CharProcedure procedure)voidforEachKeyValue(CharByteProcedure procedure)byteget(char key)bytegetAndPut(char key, byte putValue, byte defaultValue)bytegetIfAbsent(char key, byte ifAbsent)bytegetIfAbsentPut(char key, byte value)bytegetIfAbsentPut(char key, ByteFunction0 function)<P> bytegetIfAbsentPutWith(char key, ByteFunction<? super P> function, P parameter)bytegetIfAbsentPutWithKey(char key, CharToByteFunction function)bytegetOrThrow(char key)inthashCode()<V> VinjectInto(V injectedValue, ObjectByteToObjectFunction<? super V,? extends V> function)MutableCharSetkeySet()LazyCharIterablekeysView()RichIterable<CharBytePair>keyValuesView()static CharByteHashMapnewWithKeysValues(char key1, byte value1)static CharByteHashMapnewWithKeysValues(char key1, byte value1, char key2, byte value2)static CharByteHashMapnewWithKeysValues(char key1, byte value1, char key2, byte value2, char key3, byte value3)static CharByteHashMapnewWithKeysValues(char key1, byte value1, char key2, byte value2, char key3, byte value3, char key4, byte value4)voidput(char key, byte value)voidputAll(CharByteMap map)voidreadExternal(ObjectInput in)CharByteHashMapreject(CharBytePredicate predicate)voidremove(char key)voidremoveKey(char key)byteremoveKeyIfAbsent(char key, byte value)CharByteHashMapselect(CharBytePredicate predicate)ImmutableCharByteMaptoImmutable()StringtoString()booleantrimToSize()byteupdateValue(char key, byte initialValueIfAbsent, ByteToByteFunction function)voidupdateValues(CharByteToByteFunction function)MutableByteCollectionvalues()CharByteHashMapwithKeysValues(char key1, byte value1, char key2, byte value2)CharByteHashMapwithKeysValues(char key1, byte value1, char key2, byte value2, char key3, byte value3)CharByteHashMapwithKeysValues(char key1, byte value1, char key2, byte value2, char key3, byte value3, char key4, byte value4)CharByteHashMapwithKeyValue(char key1, byte value1)CharByteHashMapwithoutAllKeys(CharIterable keys)CharByteHashMapwithoutKey(char key)voidwriteExternal(ObjectOutput out)-
Methods inherited from class org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableByteValuesMap
allSatisfy, anySatisfy, appendString, chunk, collect, contains, containsAll, containsValue, count, detectIfNone, each, forEachValue, isEmpty, max, min, notEmpty, reject, select, size, sum, toArray, toArray
-
Methods inherited from class org.eclipse.collections.impl.primitive.AbstractByteIterable
asLazy, average, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedList
-
Methods inherited from interface org.eclipse.collections.api.ByteIterable
allSatisfy, anySatisfy, asLazy, average, averageIfEmpty, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, flatCollect, forEach, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toSortedList, toSortedListBy, toSortedListBy
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.ByteValuesMap
containsValue, forEachValue, tap
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.CharByteMap
injectIntoKeyValue
-
Methods inherited from interface org.eclipse.collections.impl.map.primitive.CharKeysMap
isEmpty, notEmpty, size
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableByteValuesMap
collect, reject, select
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableCharByteMap
putPair, withAllKeyValues
-
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
-
-
-
-
Constructor Detail
-
CharByteHashMap
public CharByteHashMap()
-
CharByteHashMap
public CharByteHashMap(int initialCapacity)
-
CharByteHashMap
public CharByteHashMap(CharByteMap map)
-
-
Method Detail
-
newWithKeysValues
public static CharByteHashMap newWithKeysValues(char key1, byte value1)
-
newWithKeysValues
public static CharByteHashMap newWithKeysValues(char key1, byte value1, char key2, byte value2)
-
newWithKeysValues
public static CharByteHashMap newWithKeysValues(char key1, byte value1, char key2, byte value2, char key3, byte value3)
-
newWithKeysValues
public static CharByteHashMap newWithKeysValues(char key1, byte value1, char key2, byte value2, char key3, byte value3, char key4, byte value4)
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfaceCharByteMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceCharByteMap- Overrides:
hashCodein classObject
-
toString
public String toString()
- Specified by:
toStringin interfaceCharByteMap- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classAbstractByteIterable
-
byteIterator
public MutableByteIterator byteIterator()
- Specified by:
byteIteratorin interfaceByteIterable- Specified by:
byteIteratorin interfaceMutableByteValuesMap
-
injectInto
public <V> V injectInto(V injectedValue, ObjectByteToObjectFunction<? super V,? extends V> function)- Specified by:
injectIntoin interfaceByteIterable
-
clear
public void clear()
- Specified by:
clearin interfaceMutableByteValuesMap- Specified by:
clearin interfaceMutableCharKeysMap
-
put
public void put(char key, byte value)- Specified by:
putin interfaceMutableCharByteMap
-
putAll
public void putAll(CharByteMap map)
- Specified by:
putAllin interfaceMutableCharByteMap
-
updateValues
public void updateValues(CharByteToByteFunction function)
- Specified by:
updateValuesin interfaceMutableCharByteMap
-
removeKey
public void removeKey(char key)
- Specified by:
removeKeyin interfaceMutableCharByteMap- Specified by:
removeKeyin interfaceMutableCharKeysMap
-
remove
public void remove(char key)
- Specified by:
removein interfaceMutableCharByteMap
-
removeKeyIfAbsent
public byte removeKeyIfAbsent(char key, byte value)- Specified by:
removeKeyIfAbsentin interfaceMutableCharByteMap
-
getIfAbsentPut
public byte getIfAbsentPut(char key, byte value)- Specified by:
getIfAbsentPutin interfaceMutableCharByteMap
-
getAndPut
public byte getAndPut(char key, byte putValue, byte defaultValue)- Specified by:
getAndPutin interfaceMutableCharByteMap
-
getIfAbsentPut
public byte getIfAbsentPut(char key, ByteFunction0 function)- Specified by:
getIfAbsentPutin interfaceMutableCharByteMap
-
getIfAbsentPutWith
public <P> byte getIfAbsentPutWith(char key, ByteFunction<? super P> function, P parameter)- Specified by:
getIfAbsentPutWithin interfaceMutableCharByteMap
-
getIfAbsentPutWithKey
public byte getIfAbsentPutWithKey(char key, CharToByteFunction function)- Specified by:
getIfAbsentPutWithKeyin interfaceMutableCharByteMap
-
addToValue
public byte addToValue(char key, byte toBeAdded)- Specified by:
addToValuein interfaceMutableCharByteMap
-
updateValue
public byte updateValue(char key, byte initialValueIfAbsent, ByteToByteFunction function)- Specified by:
updateValuein interfaceMutableCharByteMap
-
withKeyValue
public CharByteHashMap withKeyValue(char key1, byte value1)
- Specified by:
withKeyValuein interfaceMutableCharByteMap
-
withKeysValues
public CharByteHashMap withKeysValues(char key1, byte value1, char key2, byte value2)
-
withKeysValues
public CharByteHashMap withKeysValues(char key1, byte value1, char key2, byte value2, char key3, byte value3)
-
withKeysValues
public CharByteHashMap withKeysValues(char key1, byte value1, char key2, byte value2, char key3, byte value3, char key4, byte value4)
-
withoutKey
public CharByteHashMap withoutKey(char key)
- Specified by:
withoutKeyin interfaceMutableCharByteMap
-
withoutAllKeys
public CharByteHashMap withoutAllKeys(CharIterable keys)
- Specified by:
withoutAllKeysin interfaceMutableCharByteMap
-
asUnmodifiable
public MutableCharByteMap asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableCharByteMap
-
asSynchronized
public MutableCharByteMap asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableCharByteMap
-
toImmutable
public ImmutableCharByteMap toImmutable()
- Specified by:
toImmutablein interfaceCharByteMap
-
get
public byte get(char key)
- Specified by:
getin interfaceCharByteMap
-
getIfAbsent
public byte getIfAbsent(char key, byte ifAbsent)- Specified by:
getIfAbsentin interfaceCharByteMap
-
getOrThrow
public byte getOrThrow(char key)
- Specified by:
getOrThrowin interfaceCharByteMap
-
containsKey
public boolean containsKey(char key)
- Specified by:
containsKeyin interfaceCharByteMap- Specified by:
containsKeyin interfaceCharKeysMap
-
forEachKey
public void forEachKey(CharProcedure procedure)
- Specified by:
forEachKeyin interfaceCharByteMap- Specified by:
forEachKeyin interfaceCharKeysMap
-
forEachKeyValue
public void forEachKeyValue(CharByteProcedure procedure)
- Specified by:
forEachKeyValuein interfaceCharByteMap
-
keysView
public LazyCharIterable keysView()
- Specified by:
keysViewin interfaceCharByteMap
-
keyValuesView
public RichIterable<CharBytePair> keyValuesView()
- Specified by:
keyValuesViewin interfaceCharByteMap
-
flipUniqueValues
public MutableByteCharMap flipUniqueValues()
- Specified by:
flipUniqueValuesin interfaceCharByteMap- Specified by:
flipUniqueValuesin interfaceMutableCharByteMap
-
select
public CharByteHashMap select(CharBytePredicate predicate)
- Specified by:
selectin interfaceCharByteMap- Specified by:
selectin interfaceMutableCharByteMap
-
reject
public CharByteHashMap reject(CharBytePredicate predicate)
- Specified by:
rejectin interfaceCharByteMap- Specified by:
rejectin interfaceMutableCharByteMap
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
trimToSize
public boolean trimToSize()
- Since:
- 12.0
-
compact
@Deprecated public void compact()
Deprecated.since 12.0 - UsetrimToSize()insteadRehashes every element in the set into a new backing table of the smallest possible size and eliminating removed sentinels.
-
keySet
public MutableCharSet keySet()
- Specified by:
keySetin interfaceCharByteMap
-
values
public MutableByteCollection values()
- Specified by:
valuesin interfaceByteValuesMap
-
-