Class ByteCharHashMap
- java.lang.Object
-
- org.eclipse.collections.impl.primitive.AbstractCharIterable
-
- org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableCharValuesMap
-
- org.eclipse.collections.impl.map.mutable.primitive.ByteCharHashMap
-
- All Implemented Interfaces:
Externalizable,Serializable,CharIterable,ByteCharMap,CharValuesMap,MutableByteCharMap,MutableCharValuesMap,PrimitiveIterable,MutableByteKeysMap,ByteKeysMap
public class ByteCharHashMap extends AbstractMutableCharValuesMap implements MutableByteCharMap, Externalizable, MutableByteKeysMap
This file was automatically generated from template file primitivePrimitiveHashMap.stg.- Since:
- 3.0.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ByteCharHashMap()ByteCharHashMap(int initialCapacity)ByteCharHashMap(ByteCharMap map)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description charaddToValue(byte key, char toBeAdded)MutableByteCharMapasSynchronized()MutableByteCharMapasUnmodifiable()MutableCharIteratorcharIterator()voidclear()voidcompact()Deprecated.since 12.0 - UsetrimToSize()insteadbooleancontainsKey(byte key)booleanequals(Object obj)MutableCharByteMapflipUniqueValues()voidforEachKey(ByteProcedure procedure)voidforEachKeyValue(ByteCharProcedure procedure)charget(byte key)chargetAndPut(byte key, char putValue, char defaultValue)chargetIfAbsent(byte key, char ifAbsent)chargetIfAbsentPut(byte key, char value)chargetIfAbsentPut(byte key, CharFunction0 function)<P> chargetIfAbsentPutWith(byte key, CharFunction<? super P> function, P parameter)chargetIfAbsentPutWithKey(byte key, ByteToCharFunction function)chargetOrThrow(byte key)inthashCode()<V> VinjectInto(V injectedValue, ObjectCharToObjectFunction<? super V,? extends V> function)MutableByteSetkeySet()LazyByteIterablekeysView()RichIterable<ByteCharPair>keyValuesView()static ByteCharHashMapnewWithKeysValues(byte key1, char value1)static ByteCharHashMapnewWithKeysValues(byte key1, char value1, byte key2, char value2)static ByteCharHashMapnewWithKeysValues(byte key1, char value1, byte key2, char value2, byte key3, char value3)static ByteCharHashMapnewWithKeysValues(byte key1, char value1, byte key2, char value2, byte key3, char value3, byte key4, char value4)voidput(byte key, char value)voidputAll(ByteCharMap map)voidreadExternal(ObjectInput in)ByteCharHashMapreject(ByteCharPredicate predicate)voidremove(byte key)voidremoveKey(byte key)charremoveKeyIfAbsent(byte key, char value)ByteCharHashMapselect(ByteCharPredicate predicate)ImmutableByteCharMaptoImmutable()StringtoString()booleantrimToSize()charupdateValue(byte key, char initialValueIfAbsent, CharToCharFunction function)voidupdateValues(ByteCharToCharFunction function)MutableCharCollectionvalues()ByteCharHashMapwithKeysValues(byte key1, char value1, byte key2, char value2)ByteCharHashMapwithKeysValues(byte key1, char value1, byte key2, char value2, byte key3, char value3)ByteCharHashMapwithKeysValues(byte key1, char value1, byte key2, char value2, byte key3, char value3, byte key4, char value4)ByteCharHashMapwithKeyValue(byte key1, char value1)ByteCharHashMapwithoutAllKeys(ByteIterable keys)ByteCharHashMapwithoutKey(byte key)voidwriteExternal(ObjectOutput out)-
Methods inherited from class org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableCharValuesMap
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.AbstractCharIterable
asLazy, average, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedList
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.ByteCharMap
injectIntoKeyValue
-
Methods inherited from interface org.eclipse.collections.impl.map.primitive.ByteKeysMap
isEmpty, notEmpty, size
-
Methods inherited from interface org.eclipse.collections.api.CharIterable
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.CharValuesMap
containsValue, forEachValue, tap
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableByteCharMap
putPair, withAllKeyValues
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableCharValuesMap
collect, reject, select
-
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
-
-
-
-
Constructor Detail
-
ByteCharHashMap
public ByteCharHashMap()
-
ByteCharHashMap
public ByteCharHashMap(int initialCapacity)
-
ByteCharHashMap
public ByteCharHashMap(ByteCharMap map)
-
-
Method Detail
-
newWithKeysValues
public static ByteCharHashMap newWithKeysValues(byte key1, char value1)
-
newWithKeysValues
public static ByteCharHashMap newWithKeysValues(byte key1, char value1, byte key2, char value2)
-
newWithKeysValues
public static ByteCharHashMap newWithKeysValues(byte key1, char value1, byte key2, char value2, byte key3, char value3)
-
newWithKeysValues
public static ByteCharHashMap newWithKeysValues(byte key1, char value1, byte key2, char value2, byte key3, char value3, byte key4, char value4)
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfaceByteCharMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceByteCharMap- Overrides:
hashCodein classObject
-
toString
public String toString()
- Specified by:
toStringin interfaceByteCharMap- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classAbstractCharIterable
-
charIterator
public MutableCharIterator charIterator()
- Specified by:
charIteratorin interfaceCharIterable- Specified by:
charIteratorin interfaceMutableCharValuesMap
-
injectInto
public <V> V injectInto(V injectedValue, ObjectCharToObjectFunction<? super V,? extends V> function)- Specified by:
injectIntoin interfaceCharIterable
-
clear
public void clear()
- Specified by:
clearin interfaceMutableByteKeysMap- Specified by:
clearin interfaceMutableCharValuesMap
-
put
public void put(byte key, char value)- Specified by:
putin interfaceMutableByteCharMap
-
putAll
public void putAll(ByteCharMap map)
- Specified by:
putAllin interfaceMutableByteCharMap
-
updateValues
public void updateValues(ByteCharToCharFunction function)
- Specified by:
updateValuesin interfaceMutableByteCharMap
-
removeKey
public void removeKey(byte key)
- Specified by:
removeKeyin interfaceMutableByteCharMap- Specified by:
removeKeyin interfaceMutableByteKeysMap
-
remove
public void remove(byte key)
- Specified by:
removein interfaceMutableByteCharMap
-
removeKeyIfAbsent
public char removeKeyIfAbsent(byte key, char value)- Specified by:
removeKeyIfAbsentin interfaceMutableByteCharMap
-
getIfAbsentPut
public char getIfAbsentPut(byte key, char value)- Specified by:
getIfAbsentPutin interfaceMutableByteCharMap
-
getAndPut
public char getAndPut(byte key, char putValue, char defaultValue)- Specified by:
getAndPutin interfaceMutableByteCharMap
-
getIfAbsentPut
public char getIfAbsentPut(byte key, CharFunction0 function)- Specified by:
getIfAbsentPutin interfaceMutableByteCharMap
-
getIfAbsentPutWith
public <P> char getIfAbsentPutWith(byte key, CharFunction<? super P> function, P parameter)- Specified by:
getIfAbsentPutWithin interfaceMutableByteCharMap
-
getIfAbsentPutWithKey
public char getIfAbsentPutWithKey(byte key, ByteToCharFunction function)- Specified by:
getIfAbsentPutWithKeyin interfaceMutableByteCharMap
-
addToValue
public char addToValue(byte key, char toBeAdded)- Specified by:
addToValuein interfaceMutableByteCharMap
-
updateValue
public char updateValue(byte key, char initialValueIfAbsent, CharToCharFunction function)- Specified by:
updateValuein interfaceMutableByteCharMap
-
withKeyValue
public ByteCharHashMap withKeyValue(byte key1, char value1)
- Specified by:
withKeyValuein interfaceMutableByteCharMap
-
withKeysValues
public ByteCharHashMap withKeysValues(byte key1, char value1, byte key2, char value2)
-
withKeysValues
public ByteCharHashMap withKeysValues(byte key1, char value1, byte key2, char value2, byte key3, char value3)
-
withKeysValues
public ByteCharHashMap withKeysValues(byte key1, char value1, byte key2, char value2, byte key3, char value3, byte key4, char value4)
-
withoutKey
public ByteCharHashMap withoutKey(byte key)
- Specified by:
withoutKeyin interfaceMutableByteCharMap
-
withoutAllKeys
public ByteCharHashMap withoutAllKeys(ByteIterable keys)
- Specified by:
withoutAllKeysin interfaceMutableByteCharMap
-
asUnmodifiable
public MutableByteCharMap asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableByteCharMap
-
asSynchronized
public MutableByteCharMap asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableByteCharMap
-
toImmutable
public ImmutableByteCharMap toImmutable()
- Specified by:
toImmutablein interfaceByteCharMap
-
get
public char get(byte key)
- Specified by:
getin interfaceByteCharMap
-
getIfAbsent
public char getIfAbsent(byte key, char ifAbsent)- Specified by:
getIfAbsentin interfaceByteCharMap
-
getOrThrow
public char getOrThrow(byte key)
- Specified by:
getOrThrowin interfaceByteCharMap
-
containsKey
public boolean containsKey(byte key)
- Specified by:
containsKeyin interfaceByteCharMap- Specified by:
containsKeyin interfaceByteKeysMap
-
forEachKey
public void forEachKey(ByteProcedure procedure)
- Specified by:
forEachKeyin interfaceByteCharMap- Specified by:
forEachKeyin interfaceByteKeysMap
-
forEachKeyValue
public void forEachKeyValue(ByteCharProcedure procedure)
- Specified by:
forEachKeyValuein interfaceByteCharMap
-
keysView
public LazyByteIterable keysView()
- Specified by:
keysViewin interfaceByteCharMap
-
keyValuesView
public RichIterable<ByteCharPair> keyValuesView()
- Specified by:
keyValuesViewin interfaceByteCharMap
-
flipUniqueValues
public MutableCharByteMap flipUniqueValues()
- Specified by:
flipUniqueValuesin interfaceByteCharMap- Specified by:
flipUniqueValuesin interfaceMutableByteCharMap
-
select
public ByteCharHashMap select(ByteCharPredicate predicate)
- Specified by:
selectin interfaceByteCharMap- Specified by:
selectin interfaceMutableByteCharMap
-
reject
public ByteCharHashMap reject(ByteCharPredicate predicate)
- Specified by:
rejectin interfaceByteCharMap- Specified by:
rejectin interfaceMutableByteCharMap
-
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 MutableByteSet keySet()
- Specified by:
keySetin interfaceByteCharMap
-
values
public MutableCharCollection values()
- Specified by:
valuesin interfaceCharValuesMap
-
-