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 MutableCharBooleanMap
asSynchronized()
MutableCharBooleanMap
asUnmodifiable()
MutableBooleanIterator
booleanIterator()
void
clear()
void
compact()
Deprecated.since 12.0 - UsetrimToSize()
insteadboolean
containsKey(char key)
boolean
containsValue(boolean value)
boolean
equals(Object obj)
void
forEachKey(CharProcedure procedure)
void
forEachKeyValue(CharBooleanProcedure procedure)
boolean
get(char key)
boolean
getIfAbsent(char key, boolean ifAbsent)
boolean
getIfAbsentPut(char key, boolean value)
boolean
getIfAbsentPut(char key, BooleanFunction0 function)
<P> boolean
getIfAbsentPutWith(char key, BooleanFunction<? super P> function, P parameter)
boolean
getIfAbsentPutWithKey(char key, CharToBooleanFunction function)
boolean
getOrThrow(char key)
int
hashCode()
MutableCharSet
keySet()
LazyCharIterable
keysView()
RichIterable<CharBooleanPair>
keyValuesView()
static CharBooleanHashMap
newWithKeysValues(char key1, boolean value1)
static CharBooleanHashMap
newWithKeysValues(char key1, boolean value1, char key2, boolean value2)
static CharBooleanHashMap
newWithKeysValues(char key1, boolean value1, char key2, boolean value2, char key3, boolean value3)
static CharBooleanHashMap
newWithKeysValues(char key1, boolean value1, char key2, boolean value2, char key3, boolean value3, char key4, boolean value4)
void
put(char key, boolean value)
void
putAll(CharBooleanMap map)
void
readExternal(ObjectInput in)
CharBooleanHashMap
reject(CharBooleanPredicate predicate)
void
remove(char key)
void
removeKey(char key)
boolean
removeKeyIfAbsent(char key, boolean value)
CharBooleanHashMap
select(CharBooleanPredicate predicate)
ImmutableCharBooleanMap
toImmutable()
String
toString()
boolean
trimToSize()
boolean
updateValue(char key, boolean initialValueIfAbsent, BooleanToBooleanFunction function)
void
updateValues(CharBooleanToBooleanFunction function)
MutableBooleanCollection
values()
CharBooleanHashMap
withKeysValues(char key1, boolean value1, char key2, boolean value2)
CharBooleanHashMap
withKeysValues(char key1, boolean value1, char key2, boolean value2, char key3, boolean value3)
CharBooleanHashMap
withKeysValues(char key1, boolean value1, char key2, boolean value2, char key3, boolean value3, char key4, boolean value4)
CharBooleanHashMap
withKeyValue(char key1, boolean value1)
CharBooleanHashMap
withoutAllKeys(CharIterable keys)
CharBooleanHashMap
withoutKey(char key)
void
writeExternal(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:
asUnmodifiable
in interfaceMutableCharBooleanMap
-
asSynchronized
public MutableCharBooleanMap asSynchronized()
- Specified by:
asSynchronized
in interfaceMutableCharBooleanMap
-
toImmutable
public ImmutableCharBooleanMap toImmutable()
- Specified by:
toImmutable
in 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:
withKeyValue
in 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:
withoutKey
in interfaceMutableCharBooleanMap
-
withoutAllKeys
public CharBooleanHashMap withoutAllKeys(CharIterable keys)
- Specified by:
withoutAllKeys
in 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:
clear
in interfaceMutableBooleanValuesMap
- Specified by:
clear
in interfaceMutableCharKeysMap
-
put
public void put(char key, boolean value)
- Specified by:
put
in interfaceMutableCharBooleanMap
-
putAll
public void putAll(CharBooleanMap map)
- Specified by:
putAll
in interfaceMutableCharBooleanMap
-
updateValues
public void updateValues(CharBooleanToBooleanFunction function)
- Specified by:
updateValues
in interfaceMutableCharBooleanMap
-
containsKey
public boolean containsKey(char key)
- Specified by:
containsKey
in interfaceCharBooleanMap
- Specified by:
containsKey
in interfaceCharKeysMap
-
containsValue
public boolean containsValue(boolean value)
- Specified by:
containsValue
in interfaceBooleanValuesMap
-
get
public boolean get(char key)
- Specified by:
get
in interfaceCharBooleanMap
-
getIfAbsent
public boolean getIfAbsent(char key, boolean ifAbsent)
- Specified by:
getIfAbsent
in interfaceCharBooleanMap
-
getOrThrow
public boolean getOrThrow(char key)
- Specified by:
getOrThrow
in interfaceCharBooleanMap
-
getIfAbsentPut
public boolean getIfAbsentPut(char key, boolean value)
- Specified by:
getIfAbsentPut
in interfaceMutableCharBooleanMap
-
getIfAbsentPut
public boolean getIfAbsentPut(char key, BooleanFunction0 function)
- Specified by:
getIfAbsentPut
in interfaceMutableCharBooleanMap
-
getIfAbsentPutWith
public <P> boolean getIfAbsentPutWith(char key, BooleanFunction<? super P> function, P parameter)
- Specified by:
getIfAbsentPutWith
in interfaceMutableCharBooleanMap
-
getIfAbsentPutWithKey
public boolean getIfAbsentPutWithKey(char key, CharToBooleanFunction function)
- Specified by:
getIfAbsentPutWithKey
in interfaceMutableCharBooleanMap
-
updateValue
public boolean updateValue(char key, boolean initialValueIfAbsent, BooleanToBooleanFunction function)
- Specified by:
updateValue
in interfaceMutableCharBooleanMap
-
removeKey
public void removeKey(char key)
- Specified by:
removeKey
in interfaceMutableCharBooleanMap
- Specified by:
removeKey
in interfaceMutableCharKeysMap
-
remove
public void remove(char key)
- Specified by:
remove
in interfaceMutableCharBooleanMap
-
removeKeyIfAbsent
public boolean removeKeyIfAbsent(char key, boolean value)
- Specified by:
removeKeyIfAbsent
in interfaceMutableCharBooleanMap
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfaceCharBooleanMap
- Overrides:
equals
in classObject
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfaceCharBooleanMap
- Overrides:
hashCode
in classObject
-
toString
public String toString()
- Specified by:
toString
in interfaceCharBooleanMap
- Specified by:
toString
in interfacePrimitiveIterable
- Overrides:
toString
in classAbstractBooleanIterable
-
booleanIterator
public MutableBooleanIterator booleanIterator()
- Specified by:
booleanIterator
in interfaceBooleanIterable
- Specified by:
booleanIterator
in interfaceMutableBooleanValuesMap
-
forEachKey
public void forEachKey(CharProcedure procedure)
- Specified by:
forEachKey
in interfaceCharBooleanMap
- Specified by:
forEachKey
in interfaceCharKeysMap
-
forEachKeyValue
public void forEachKeyValue(CharBooleanProcedure procedure)
- Specified by:
forEachKeyValue
in interfaceCharBooleanMap
-
select
public CharBooleanHashMap select(CharBooleanPredicate predicate)
- Specified by:
select
in interfaceCharBooleanMap
- Specified by:
select
in interfaceMutableCharBooleanMap
-
reject
public CharBooleanHashMap reject(CharBooleanPredicate predicate)
- Specified by:
reject
in interfaceCharBooleanMap
- Specified by:
reject
in interfaceMutableCharBooleanMap
-
keysView
public LazyCharIterable keysView()
- Specified by:
keysView
in interfaceCharBooleanMap
-
keyValuesView
public RichIterable<CharBooleanPair> keyValuesView()
- Specified by:
keyValuesView
in interfaceCharBooleanMap
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-
keySet
public MutableCharSet keySet()
- Specified by:
keySet
in interfaceCharBooleanMap
-
values
public MutableBooleanCollection values()
- Specified by:
values
in interfaceBooleanValuesMap
-
-