Class CharBooleanHashMap
java.lang.Object
org.eclipse.collections.impl.primitive.AbstractBooleanIterable
org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableBooleanValuesMap
org.eclipse.collections.impl.map.mutable.primitive.CharBooleanHashMap
- All Implemented Interfaces:
Externalizable,Serializable,BooleanIterable,BooleanValuesMap,CharBooleanMap,MutableBooleanValuesMap,MutableCharBooleanMap,PrimitiveIterable,MutableCharKeysMap,CharKeysMap
public class CharBooleanHashMap
extends AbstractMutableBooleanValuesMap
implements MutableCharBooleanMap, MutableCharKeysMap, Externalizable
This file was automatically generated from template file primitiveBooleanHashMap.stg.
- Since:
- 3.0.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCharBooleanHashMap(int initialCapacity) CharBooleanHashMap(int initialCapacity, float loadFactor) Deprecated.in 5.1.0. -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()voidcompact()Deprecated.since 12.0 - UsetrimToSize()insteadbooleancontainsKey(char key) booleancontainsValue(boolean value) booleanvoidforEachKey(CharProcedure procedure) voidforEachKeyValue(CharBooleanProcedure procedure) booleanget(char key) booleangetIfAbsent(char key, boolean ifAbsent) booleangetIfAbsentPut(char key, boolean value) booleangetIfAbsentPut(char key, BooleanFunction0 function) <P> booleangetIfAbsentPutWith(char key, BooleanFunction<? super P> function, P parameter) booleangetIfAbsentPutWithKey(char key, CharToBooleanFunction function) booleangetOrThrow(char key) inthashCode()keySet()keysView()static CharBooleanHashMapnewWithKeysValues(char key1, boolean value1) static CharBooleanHashMapnewWithKeysValues(char key1, boolean value1, char key2, boolean value2) static CharBooleanHashMapnewWithKeysValues(char key1, boolean value1, char key2, boolean value2, char key3, boolean value3) static CharBooleanHashMapnewWithKeysValues(char key1, boolean value1, char key2, boolean value2, char key3, boolean value3, char key4, boolean value4) voidput(char key, boolean value) voidputAll(CharBooleanMap map) voidreject(CharBooleanPredicate predicate) voidremove(char key) voidremoveKey(char key) booleanremoveKeyIfAbsent(char key, boolean value) select(CharBooleanPredicate predicate) toString()booleanbooleanupdateValue(char key, boolean initialValueIfAbsent, BooleanToBooleanFunction function) voidupdateValues(CharBooleanToBooleanFunction function) values()withKeysValues(char key1, boolean value1, char key2, boolean value2) withKeysValues(char key1, boolean value1, char key2, boolean value2, char key3, boolean value3) withKeysValues(char key1, boolean value1, char key2, boolean value2, char key3, boolean value3, char key4, boolean value4) withKeyValue(char key1, boolean value1) withoutAllKeys(CharIterable keys) withoutKey(char key) voidMethods inherited from class org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableBooleanValuesMap
allSatisfy, anySatisfy, appendString, chunk, collect, contains, containsAll, count, detectIfNone, each, forEach, forEachValue, injectInto, isEmpty, noneSatisfy, notEmpty, reject, select, size, toArray, toArrayMethods inherited from class org.eclipse.collections.impl.primitive.AbstractBooleanIterable
asLazy, toBag, toList, toSetMethods inherited from interface org.eclipse.collections.api.BooleanIterable
allSatisfy, anySatisfy, asLazy, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, flatCollect, forEach, injectInto, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, noneSatisfy, reduce, reduceIfEmpty, reject, select, toArray, toArray, toBag, toList, toSetMethods inherited from interface org.eclipse.collections.api.map.primitive.BooleanValuesMap
forEachValue, tapMethods inherited from interface org.eclipse.collections.api.map.primitive.CharBooleanMap
allSatisfyKeyValue, injectIntoKeyValueMethods inherited from interface org.eclipse.collections.impl.map.primitive.CharKeysMap
isEmpty, notEmpty, sizeMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableBooleanValuesMap
collect, reject, selectMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableCharBooleanMap
getAndPut, putPair, withAllKeyValuesMethods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
-
Constructor Details
-
CharBooleanHashMap
public CharBooleanHashMap() -
CharBooleanHashMap
public CharBooleanHashMap(int initialCapacity) -
CharBooleanHashMap
-
CharBooleanHashMap
Deprecated.in 5.1.0.
-
-
Method Details
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableCharBooleanMap
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableCharBooleanMap
-
toImmutable
- Specified by:
toImmutablein interfaceCharBooleanMap
-
newWithKeysValues
-
newWithKeysValues
public static CharBooleanHashMap newWithKeysValues(char key1, boolean value1, char key2, boolean value2) -
newWithKeysValues
public static CharBooleanHashMap newWithKeysValues(char key1, boolean value1, char key2, boolean value2, char key3, boolean value3) -
newWithKeysValues
public static CharBooleanHashMap newWithKeysValues(char key1, boolean value1, char key2, boolean value2, char key3, boolean value3, char key4, boolean value4) -
withKeyValue
- Specified by:
withKeyValuein interfaceMutableCharBooleanMap
-
withKeysValues
-
withKeysValues
public CharBooleanHashMap withKeysValues(char key1, boolean value1, char key2, boolean value2, char key3, boolean value3) -
withKeysValues
public CharBooleanHashMap withKeysValues(char key1, boolean value1, char key2, boolean value2, char key3, boolean value3, char key4, boolean value4) -
withoutKey
- Specified by:
withoutKeyin interfaceMutableCharBooleanMap
-
withoutAllKeys
- Specified by:
withoutAllKeysin interfaceMutableCharBooleanMap
-
trimToSize
public boolean trimToSize()- Since:
- 12.0
-
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. -
clear
public void clear()- Specified by:
clearin interfaceMutableBooleanValuesMap- Specified by:
clearin interfaceMutableCharKeysMap
-
put
public void put(char key, boolean value) - Specified by:
putin interfaceMutableCharBooleanMap
-
putAll
- Specified by:
putAllin interfaceMutableCharBooleanMap
-
updateValues
- Specified by:
updateValuesin interfaceMutableCharBooleanMap
-
containsKey
public boolean containsKey(char key) - Specified by:
containsKeyin interfaceCharBooleanMap- Specified by:
containsKeyin interfaceCharKeysMap
-
containsValue
public boolean containsValue(boolean value) - Specified by:
containsValuein interfaceBooleanValuesMap
-
get
public boolean get(char key) - Specified by:
getin interfaceCharBooleanMap
-
getIfAbsent
public boolean getIfAbsent(char key, boolean ifAbsent) - Specified by:
getIfAbsentin interfaceCharBooleanMap
-
getOrThrow
public boolean getOrThrow(char key) - Specified by:
getOrThrowin interfaceCharBooleanMap
-
getIfAbsentPut
public boolean getIfAbsentPut(char key, boolean value) - Specified by:
getIfAbsentPutin interfaceMutableCharBooleanMap
-
getIfAbsentPut
- Specified by:
getIfAbsentPutin interfaceMutableCharBooleanMap
-
getIfAbsentPutWith
- Specified by:
getIfAbsentPutWithin interfaceMutableCharBooleanMap
-
getIfAbsentPutWithKey
- Specified by:
getIfAbsentPutWithKeyin interfaceMutableCharBooleanMap
-
updateValue
public boolean updateValue(char key, boolean initialValueIfAbsent, BooleanToBooleanFunction function) - Specified by:
updateValuein interfaceMutableCharBooleanMap
-
removeKey
public void removeKey(char key) - Specified by:
removeKeyin interfaceMutableCharBooleanMap- Specified by:
removeKeyin interfaceMutableCharKeysMap
-
remove
public void remove(char key) - Specified by:
removein interfaceMutableCharBooleanMap
-
removeKeyIfAbsent
public boolean removeKeyIfAbsent(char key, boolean value) - Specified by:
removeKeyIfAbsentin interfaceMutableCharBooleanMap
-
equals
- Specified by:
equalsin interfaceCharBooleanMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceCharBooleanMap- Overrides:
hashCodein classObject
-
toString
- Specified by:
toStringin interfaceCharBooleanMap- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classAbstractBooleanIterable
-
booleanIterator
- Specified by:
booleanIteratorin interfaceBooleanIterable- Specified by:
booleanIteratorin interfaceMutableBooleanValuesMap
-
forEachKey
- Specified by:
forEachKeyin interfaceCharBooleanMap- Specified by:
forEachKeyin interfaceCharKeysMap
-
forEachKeyValue
- Specified by:
forEachKeyValuein interfaceCharBooleanMap
-
select
- Specified by:
selectin interfaceCharBooleanMap- Specified by:
selectin interfaceMutableCharBooleanMap
-
reject
- Specified by:
rejectin interfaceCharBooleanMap- Specified by:
rejectin interfaceMutableCharBooleanMap
-
keysView
- Specified by:
keysViewin interfaceCharBooleanMap
-
keyValuesView
- Specified by:
keyValuesViewin interfaceCharBooleanMap
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
keySet
- Specified by:
keySetin interfaceCharBooleanMap
-
values
- Specified by:
valuesin interfaceBooleanValuesMap
-