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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CharBooleanHashMap()CharBooleanHashMap(int initialCapacity)CharBooleanHashMap(int initialCapacity, float loadFactor)Deprecated.in 5.1.0.CharBooleanHashMap(CharBooleanMap map)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description MutableCharBooleanMapasSynchronized()MutableCharBooleanMapasUnmodifiable()MutableBooleanIteratorbooleanIterator()voidclear()voidcompact()Deprecated.since 12.0 - UsetrimToSize()insteadbooleancontainsKey(char key)booleancontainsValue(boolean value)booleanequals(Object obj)voidforEachKey(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()MutableCharSetkeySet()LazyCharIterablekeysView()RichIterable<CharBooleanPair>keyValuesView()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)voidreadExternal(ObjectInput in)CharBooleanHashMapreject(CharBooleanPredicate predicate)voidremove(char key)voidremoveKey(char key)booleanremoveKeyIfAbsent(char key, boolean value)CharBooleanHashMapselect(CharBooleanPredicate predicate)ImmutableCharBooleanMaptoImmutable()StringtoString()booleantrimToSize()booleanupdateValue(char key, boolean initialValueIfAbsent, BooleanToBooleanFunction function)voidupdateValues(CharBooleanToBooleanFunction function)MutableBooleanCollectionvalues()CharBooleanHashMapwithKeysValues(char key1, boolean value1, char key2, boolean value2)CharBooleanHashMapwithKeysValues(char key1, boolean value1, char key2, boolean value2, char key3, boolean value3)CharBooleanHashMapwithKeysValues(char key1, boolean value1, char key2, boolean value2, char key3, boolean value3, char key4, boolean value4)CharBooleanHashMapwithKeyValue(char key1, boolean value1)CharBooleanHashMapwithoutAllKeys(CharIterable keys)CharBooleanHashMapwithoutKey(char key)voidwriteExternal(ObjectOutput out)-
Methods 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, toArray
-
Methods inherited from class org.eclipse.collections.impl.primitive.AbstractBooleanIterable
asLazy, toBag, toList, toSet
-
Methods 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, toSet
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.BooleanValuesMap
forEachValue, tap
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.CharBooleanMap
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.MutableBooleanValuesMap
collect, reject, select
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableCharBooleanMap
getAndPut, putPair, withAllKeyValues
-
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
-
-
-
-
Constructor Detail
-
CharBooleanHashMap
public CharBooleanHashMap()
-
CharBooleanHashMap
public CharBooleanHashMap(int initialCapacity)
-
CharBooleanHashMap
public CharBooleanHashMap(CharBooleanMap map)
-
CharBooleanHashMap
@Deprecated public CharBooleanHashMap(int initialCapacity, float loadFactor)
Deprecated.in 5.1.0.
-
-
Method Detail
-
asUnmodifiable
public MutableCharBooleanMap asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableCharBooleanMap
-
asSynchronized
public MutableCharBooleanMap asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableCharBooleanMap
-
toImmutable
public ImmutableCharBooleanMap toImmutable()
- Specified by:
toImmutablein interfaceCharBooleanMap
-
newWithKeysValues
public static CharBooleanHashMap newWithKeysValues(char key1, boolean value1)
-
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
public CharBooleanHashMap withKeyValue(char key1, boolean value1)
- Specified by:
withKeyValuein interfaceMutableCharBooleanMap
-
withKeysValues
public CharBooleanHashMap withKeysValues(char key1, boolean value1, char key2, boolean value2)
-
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
public CharBooleanHashMap withoutKey(char key)
- Specified by:
withoutKeyin interfaceMutableCharBooleanMap
-
withoutAllKeys
public CharBooleanHashMap withoutAllKeys(CharIterable keys)
- Specified by:
withoutAllKeysin interfaceMutableCharBooleanMap
-
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.
-
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
public void putAll(CharBooleanMap map)
- Specified by:
putAllin interfaceMutableCharBooleanMap
-
updateValues
public void updateValues(CharBooleanToBooleanFunction function)
- 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
public boolean getIfAbsentPut(char key, BooleanFunction0 function)- Specified by:
getIfAbsentPutin interfaceMutableCharBooleanMap
-
getIfAbsentPutWith
public <P> boolean getIfAbsentPutWith(char key, BooleanFunction<? super P> function, P parameter)- Specified by:
getIfAbsentPutWithin interfaceMutableCharBooleanMap
-
getIfAbsentPutWithKey
public boolean getIfAbsentPutWithKey(char key, CharToBooleanFunction function)- 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
public boolean equals(Object obj)
- Specified by:
equalsin interfaceCharBooleanMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceCharBooleanMap- Overrides:
hashCodein classObject
-
toString
public String toString()
- Specified by:
toStringin interfaceCharBooleanMap- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classAbstractBooleanIterable
-
booleanIterator
public MutableBooleanIterator booleanIterator()
- Specified by:
booleanIteratorin interfaceBooleanIterable- Specified by:
booleanIteratorin interfaceMutableBooleanValuesMap
-
forEachKey
public void forEachKey(CharProcedure procedure)
- Specified by:
forEachKeyin interfaceCharBooleanMap- Specified by:
forEachKeyin interfaceCharKeysMap
-
forEachKeyValue
public void forEachKeyValue(CharBooleanProcedure procedure)
- Specified by:
forEachKeyValuein interfaceCharBooleanMap
-
select
public CharBooleanHashMap select(CharBooleanPredicate predicate)
- Specified by:
selectin interfaceCharBooleanMap- Specified by:
selectin interfaceMutableCharBooleanMap
-
reject
public CharBooleanHashMap reject(CharBooleanPredicate predicate)
- Specified by:
rejectin interfaceCharBooleanMap- Specified by:
rejectin interfaceMutableCharBooleanMap
-
keysView
public LazyCharIterable keysView()
- Specified by:
keysViewin interfaceCharBooleanMap
-
keyValuesView
public RichIterable<CharBooleanPair> keyValuesView()
- Specified by:
keyValuesViewin interfaceCharBooleanMap
-
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
-
keySet
public MutableCharSet keySet()
- Specified by:
keySetin interfaceCharBooleanMap
-
values
public MutableBooleanCollection values()
- Specified by:
valuesin interfaceBooleanValuesMap
-
-