public class CharBooleanHashMap extends AbstractMutableBooleanValuesMap implements com.gs.collections.api.map.primitive.MutableCharBooleanMap, MutableCharKeysMap, java.io.Externalizable
AbstractMutableBooleanValuesMap.AbstractBooleanValuesCollection, AbstractMutableBooleanValuesMap.SentinelValues| Constructor and Description |
|---|
CharBooleanHashMap() |
CharBooleanHashMap(com.gs.collections.api.map.primitive.CharBooleanMap map) |
CharBooleanHashMap(int initialCapacity) |
CharBooleanHashMap(int initialCapacity,
float loadFactor)
Deprecated.
in 5.1.0.
|
| Modifier and Type | Method and Description |
|---|---|
com.gs.collections.api.map.primitive.MutableCharBooleanMap |
asSynchronized() |
com.gs.collections.api.map.primitive.MutableCharBooleanMap |
asUnmodifiable() |
com.gs.collections.api.iterator.MutableBooleanIterator |
booleanIterator() |
void |
clear() |
void |
compact()
Rehashes every element in the set into a new backing table of the smallest possible size and eliminating removed sentinels.
|
boolean |
containsKey(char key) |
boolean |
containsValue(boolean value) |
boolean |
equals(java.lang.Object obj)
Follows the same general contract as
Map.equals(Object). |
void |
forEachKey(com.gs.collections.api.block.procedure.primitive.CharProcedure procedure) |
void |
forEachKeyValue(com.gs.collections.api.block.procedure.primitive.CharBooleanProcedure procedure) |
boolean |
get(char key) |
protected boolean |
getEmptyValue() |
boolean |
getIfAbsent(char key,
boolean ifAbsent) |
boolean |
getIfAbsentPut(char key,
boolean value) |
boolean |
getIfAbsentPut(char key,
com.gs.collections.api.block.function.primitive.BooleanFunction0 function) |
<P> boolean |
getIfAbsentPutWith(char key,
com.gs.collections.api.block.function.primitive.BooleanFunction<? super P> function,
P parameter) |
boolean |
getIfAbsentPutWithKey(char key,
com.gs.collections.api.block.function.primitive.CharToBooleanFunction function) |
protected int |
getOccupiedWithData() |
boolean |
getOrThrow(char key) |
protected AbstractMutableBooleanValuesMap.SentinelValues |
getSentinelValues() |
protected int |
getTableSize() |
protected boolean |
getValueAtIndex(int index) |
int |
hashCode()
Follows the same general contract as
Map.hashCode(). |
protected boolean |
isNonSentinelAtIndex(int index) |
com.gs.collections.api.set.primitive.MutableCharSet |
keySet() |
com.gs.collections.api.LazyCharIterable |
keysView() |
com.gs.collections.api.RichIterable<com.gs.collections.api.tuple.primitive.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(com.gs.collections.api.map.primitive.CharBooleanMap map) |
void |
readExternal(java.io.ObjectInput in) |
CharBooleanHashMap |
reject(com.gs.collections.api.block.predicate.primitive.CharBooleanPredicate predicate) |
void |
remove(char key) |
void |
removeKey(char key) |
boolean |
removeKeyIfAbsent(char key,
boolean value) |
CharBooleanHashMap |
select(com.gs.collections.api.block.predicate.primitive.CharBooleanPredicate predicate) |
protected void |
setSentinelValuesNull() |
com.gs.collections.api.map.primitive.ImmutableCharBooleanMap |
toImmutable() |
java.lang.String |
toString()
Returns a string representation of this PrimitiveIterable.
|
boolean |
updateValue(char key,
boolean initialValueIfAbsent,
com.gs.collections.api.block.function.primitive.BooleanToBooleanFunction function) |
com.gs.collections.api.collection.primitive.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(com.gs.collections.api.CharIterable keys) |
CharBooleanHashMap |
withoutKey(char key) |
void |
writeExternal(java.io.ObjectOutput out) |
addEmptyKeyValue, addRemovedKeyValue, allSatisfy, anySatisfy, appendString, collect, contains, containsAll, count, detectIfNone, each, forEach, forEachValue, injectInto, isEmpty, noneSatisfy, notEmpty, reject, removeEmptyKey, removeRemovedKey, select, size, toArrayappendString, appendString, asLazy, containsAll, makeString, makeString, makeString, toBag, toList, toSetclone, finalize, getClass, notify, notifyAll, wait, wait, waitcollect, reject, selectallSatisfy, anySatisfy, asLazy, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, noneSatisfy, toArray, toBag, toList, toSetappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, sizeisEmpty, notEmpty, sizepublic CharBooleanHashMap()
public CharBooleanHashMap(int initialCapacity)
public CharBooleanHashMap(com.gs.collections.api.map.primitive.CharBooleanMap map)
@Deprecated
public CharBooleanHashMap(int initialCapacity,
float loadFactor)
protected int getOccupiedWithData()
getOccupiedWithData in class AbstractMutableBooleanValuesMapprotected AbstractMutableBooleanValuesMap.SentinelValues getSentinelValues()
getSentinelValues in class AbstractMutableBooleanValuesMapprotected void setSentinelValuesNull()
setSentinelValuesNull in class AbstractMutableBooleanValuesMapprotected boolean getEmptyValue()
getEmptyValue in class AbstractMutableBooleanValuesMapprotected int getTableSize()
getTableSize in class AbstractMutableBooleanValuesMapprotected boolean getValueAtIndex(int index)
getValueAtIndex in class AbstractMutableBooleanValuesMapprotected boolean isNonSentinelAtIndex(int index)
isNonSentinelAtIndex in class AbstractMutableBooleanValuesMappublic com.gs.collections.api.map.primitive.MutableCharBooleanMap asUnmodifiable()
asUnmodifiable in interface com.gs.collections.api.map.primitive.MutableCharBooleanMappublic com.gs.collections.api.map.primitive.MutableCharBooleanMap asSynchronized()
asSynchronized in interface com.gs.collections.api.map.primitive.MutableCharBooleanMappublic com.gs.collections.api.map.primitive.ImmutableCharBooleanMap toImmutable()
toImmutable in interface com.gs.collections.api.map.primitive.CharBooleanMappublic static CharBooleanHashMap newWithKeysValues(char key1, boolean value1)
public static CharBooleanHashMap newWithKeysValues(char key1, boolean value1, char key2, boolean value2)
public static CharBooleanHashMap newWithKeysValues(char key1, boolean value1, char key2, boolean value2, char key3, boolean value3)
public static CharBooleanHashMap newWithKeysValues(char key1, boolean value1, char key2, boolean value2, char key3, boolean value3, char key4, boolean value4)
public CharBooleanHashMap withKeyValue(char key1, boolean value1)
withKeyValue in interface com.gs.collections.api.map.primitive.MutableCharBooleanMappublic CharBooleanHashMap withKeysValues(char key1, boolean value1, char key2, boolean value2)
public CharBooleanHashMap withKeysValues(char key1, boolean value1, char key2, boolean value2, char key3, boolean value3)
public CharBooleanHashMap withKeysValues(char key1, boolean value1, char key2, boolean value2, char key3, boolean value3, char key4, boolean value4)
public CharBooleanHashMap withoutKey(char key)
withoutKey in interface com.gs.collections.api.map.primitive.MutableCharBooleanMappublic CharBooleanHashMap withoutAllKeys(com.gs.collections.api.CharIterable keys)
withoutAllKeys in interface com.gs.collections.api.map.primitive.MutableCharBooleanMappublic void compact()
public void clear()
clear in interface com.gs.collections.api.map.primitive.MutableBooleanValuesMapclear in interface MutableCharKeysMappublic void put(char key,
boolean value)
put in interface com.gs.collections.api.map.primitive.MutableCharBooleanMappublic void putAll(com.gs.collections.api.map.primitive.CharBooleanMap map)
putAll in interface com.gs.collections.api.map.primitive.MutableCharBooleanMappublic boolean containsKey(char key)
containsKey in interface com.gs.collections.api.map.primitive.CharBooleanMapcontainsKey in interface CharKeysMappublic boolean containsValue(boolean value)
containsValue in interface com.gs.collections.api.map.primitive.BooleanValuesMappublic boolean get(char key)
get in interface com.gs.collections.api.map.primitive.CharBooleanMappublic boolean getIfAbsent(char key,
boolean ifAbsent)
getIfAbsent in interface com.gs.collections.api.map.primitive.CharBooleanMappublic boolean getOrThrow(char key)
getOrThrow in interface com.gs.collections.api.map.primitive.CharBooleanMappublic boolean getIfAbsentPut(char key,
boolean value)
getIfAbsentPut in interface com.gs.collections.api.map.primitive.MutableCharBooleanMappublic boolean getIfAbsentPut(char key,
com.gs.collections.api.block.function.primitive.BooleanFunction0 function)
getIfAbsentPut in interface com.gs.collections.api.map.primitive.MutableCharBooleanMappublic <P> boolean getIfAbsentPutWith(char key,
com.gs.collections.api.block.function.primitive.BooleanFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface com.gs.collections.api.map.primitive.MutableCharBooleanMappublic boolean getIfAbsentPutWithKey(char key,
com.gs.collections.api.block.function.primitive.CharToBooleanFunction function)
getIfAbsentPutWithKey in interface com.gs.collections.api.map.primitive.MutableCharBooleanMappublic boolean updateValue(char key,
boolean initialValueIfAbsent,
com.gs.collections.api.block.function.primitive.BooleanToBooleanFunction function)
updateValue in interface com.gs.collections.api.map.primitive.MutableCharBooleanMappublic void removeKey(char key)
removeKey in interface com.gs.collections.api.map.primitive.MutableCharBooleanMapremoveKey in interface MutableCharKeysMappublic void remove(char key)
remove in interface com.gs.collections.api.map.primitive.MutableCharBooleanMappublic boolean removeKeyIfAbsent(char key,
boolean value)
removeKeyIfAbsent in interface com.gs.collections.api.map.primitive.MutableCharBooleanMappublic boolean equals(java.lang.Object obj)
com.gs.collections.api.map.primitive.CharBooleanMapMap.equals(Object).equals in interface com.gs.collections.api.map.primitive.CharBooleanMapequals in class java.lang.Objectpublic int hashCode()
com.gs.collections.api.map.primitive.CharBooleanMapMap.hashCode().hashCode in interface com.gs.collections.api.map.primitive.CharBooleanMaphashCode in class java.lang.Objectpublic java.lang.String toString()
com.gs.collections.api.PrimitiveIterabletoString in interface com.gs.collections.api.map.primitive.CharBooleanMaptoString in interface com.gs.collections.api.PrimitiveIterabletoString in class AbstractBooleanIterablepublic com.gs.collections.api.iterator.MutableBooleanIterator booleanIterator()
booleanIterator in interface com.gs.collections.api.BooleanIterablebooleanIterator in interface com.gs.collections.api.map.primitive.MutableBooleanValuesMappublic void forEachKey(com.gs.collections.api.block.procedure.primitive.CharProcedure procedure)
forEachKey in interface com.gs.collections.api.map.primitive.CharBooleanMapforEachKey in interface CharKeysMappublic void forEachKeyValue(com.gs.collections.api.block.procedure.primitive.CharBooleanProcedure procedure)
forEachKeyValue in interface com.gs.collections.api.map.primitive.CharBooleanMappublic CharBooleanHashMap select(com.gs.collections.api.block.predicate.primitive.CharBooleanPredicate predicate)
select in interface com.gs.collections.api.map.primitive.CharBooleanMapselect in interface com.gs.collections.api.map.primitive.MutableCharBooleanMappublic CharBooleanHashMap reject(com.gs.collections.api.block.predicate.primitive.CharBooleanPredicate predicate)
reject in interface com.gs.collections.api.map.primitive.CharBooleanMapreject in interface com.gs.collections.api.map.primitive.MutableCharBooleanMappublic com.gs.collections.api.LazyCharIterable keysView()
keysView in interface com.gs.collections.api.map.primitive.CharBooleanMappublic com.gs.collections.api.RichIterable<com.gs.collections.api.tuple.primitive.CharBooleanPair> keyValuesView()
keyValuesView in interface com.gs.collections.api.map.primitive.CharBooleanMappublic void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOExceptionpublic void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablejava.io.IOExceptionjava.lang.ClassNotFoundExceptionpublic com.gs.collections.api.set.primitive.MutableCharSet keySet()
keySet in interface com.gs.collections.api.map.primitive.CharBooleanMappublic com.gs.collections.api.collection.primitive.MutableBooleanCollection values()
values in interface com.gs.collections.api.map.primitive.BooleanValuesMap