public class IntBooleanHashMap extends AbstractMutableBooleanValuesMap implements com.gs.collections.api.map.primitive.MutableIntBooleanMap, MutableIntKeysMap, java.io.Externalizable
AbstractMutableBooleanValuesMap.AbstractBooleanValuesCollection, AbstractMutableBooleanValuesMap.SentinelValues| Constructor and Description |
|---|
IntBooleanHashMap() |
IntBooleanHashMap(int initialCapacity) |
IntBooleanHashMap(com.gs.collections.api.map.primitive.IntBooleanMap map) |
IntBooleanHashMap(int initialCapacity,
float loadFactor)
Deprecated.
in 5.1.0.
|
| Modifier and Type | Method and Description |
|---|---|
com.gs.collections.api.map.primitive.MutableIntBooleanMap |
asSynchronized() |
com.gs.collections.api.map.primitive.MutableIntBooleanMap |
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(int 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.IntProcedure procedure) |
void |
forEachKeyValue(com.gs.collections.api.block.procedure.primitive.IntBooleanProcedure procedure) |
boolean |
get(int key) |
protected boolean |
getEmptyValue() |
boolean |
getIfAbsent(int key,
boolean ifAbsent) |
boolean |
getIfAbsentPut(int key,
boolean value) |
boolean |
getIfAbsentPut(int key,
com.gs.collections.api.block.function.primitive.BooleanFunction0 function) |
<P> boolean |
getIfAbsentPutWith(int key,
com.gs.collections.api.block.function.primitive.BooleanFunction<? super P> function,
P parameter) |
boolean |
getIfAbsentPutWithKey(int key,
com.gs.collections.api.block.function.primitive.IntToBooleanFunction function) |
protected int |
getOccupiedWithData() |
boolean |
getOrThrow(int 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.MutableIntSet |
keySet() |
com.gs.collections.api.LazyIntIterable |
keysView() |
com.gs.collections.api.RichIterable<com.gs.collections.api.tuple.primitive.IntBooleanPair> |
keyValuesView() |
static IntBooleanHashMap |
newWithKeysValues(int key1,
boolean value1) |
static IntBooleanHashMap |
newWithKeysValues(int key1,
boolean value1,
int key2,
boolean value2) |
static IntBooleanHashMap |
newWithKeysValues(int key1,
boolean value1,
int key2,
boolean value2,
int key3,
boolean value3) |
static IntBooleanHashMap |
newWithKeysValues(int key1,
boolean value1,
int key2,
boolean value2,
int key3,
boolean value3,
int key4,
boolean value4) |
void |
put(int key,
boolean value) |
void |
putAll(com.gs.collections.api.map.primitive.IntBooleanMap map) |
void |
readExternal(java.io.ObjectInput in) |
IntBooleanHashMap |
reject(com.gs.collections.api.block.predicate.primitive.IntBooleanPredicate predicate) |
void |
remove(int key) |
void |
removeKey(int key) |
boolean |
removeKeyIfAbsent(int key,
boolean value) |
IntBooleanHashMap |
select(com.gs.collections.api.block.predicate.primitive.IntBooleanPredicate predicate) |
protected void |
setSentinelValuesNull() |
com.gs.collections.api.map.primitive.ImmutableIntBooleanMap |
toImmutable() |
java.lang.String |
toString()
Returns a string representation of this PrimitiveIterable.
|
boolean |
updateValue(int key,
boolean initialValueIfAbsent,
com.gs.collections.api.block.function.primitive.BooleanToBooleanFunction function) |
com.gs.collections.api.collection.primitive.MutableBooleanCollection |
values() |
IntBooleanHashMap |
withKeysValues(int key1,
boolean value1,
int key2,
boolean value2) |
IntBooleanHashMap |
withKeysValues(int key1,
boolean value1,
int key2,
boolean value2,
int key3,
boolean value3) |
IntBooleanHashMap |
withKeysValues(int key1,
boolean value1,
int key2,
boolean value2,
int key3,
boolean value3,
int key4,
boolean value4) |
IntBooleanHashMap |
withKeyValue(int key1,
boolean value1) |
IntBooleanHashMap |
withoutAllKeys(com.gs.collections.api.IntIterable keys) |
IntBooleanHashMap |
withoutKey(int 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 IntBooleanHashMap()
public IntBooleanHashMap(int initialCapacity)
public IntBooleanHashMap(com.gs.collections.api.map.primitive.IntBooleanMap map)
@Deprecated
public IntBooleanHashMap(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.MutableIntBooleanMap asUnmodifiable()
asUnmodifiable in interface com.gs.collections.api.map.primitive.MutableIntBooleanMappublic com.gs.collections.api.map.primitive.MutableIntBooleanMap asSynchronized()
asSynchronized in interface com.gs.collections.api.map.primitive.MutableIntBooleanMappublic com.gs.collections.api.map.primitive.ImmutableIntBooleanMap toImmutable()
toImmutable in interface com.gs.collections.api.map.primitive.IntBooleanMappublic static IntBooleanHashMap newWithKeysValues(int key1, boolean value1)
public static IntBooleanHashMap newWithKeysValues(int key1, boolean value1, int key2, boolean value2)
public static IntBooleanHashMap newWithKeysValues(int key1, boolean value1, int key2, boolean value2, int key3, boolean value3)
public static IntBooleanHashMap newWithKeysValues(int key1, boolean value1, int key2, boolean value2, int key3, boolean value3, int key4, boolean value4)
public IntBooleanHashMap withKeyValue(int key1, boolean value1)
withKeyValue in interface com.gs.collections.api.map.primitive.MutableIntBooleanMappublic IntBooleanHashMap withKeysValues(int key1, boolean value1, int key2, boolean value2)
public IntBooleanHashMap withKeysValues(int key1, boolean value1, int key2, boolean value2, int key3, boolean value3)
public IntBooleanHashMap withKeysValues(int key1, boolean value1, int key2, boolean value2, int key3, boolean value3, int key4, boolean value4)
public IntBooleanHashMap withoutKey(int key)
withoutKey in interface com.gs.collections.api.map.primitive.MutableIntBooleanMappublic IntBooleanHashMap withoutAllKeys(com.gs.collections.api.IntIterable keys)
withoutAllKeys in interface com.gs.collections.api.map.primitive.MutableIntBooleanMappublic void compact()
public void clear()
clear in interface com.gs.collections.api.map.primitive.MutableBooleanValuesMapclear in interface MutableIntKeysMappublic void put(int key,
boolean value)
put in interface com.gs.collections.api.map.primitive.MutableIntBooleanMappublic void putAll(com.gs.collections.api.map.primitive.IntBooleanMap map)
putAll in interface com.gs.collections.api.map.primitive.MutableIntBooleanMappublic boolean containsKey(int key)
containsKey in interface com.gs.collections.api.map.primitive.IntBooleanMapcontainsKey in interface IntKeysMappublic boolean containsValue(boolean value)
containsValue in interface com.gs.collections.api.map.primitive.BooleanValuesMappublic boolean get(int key)
get in interface com.gs.collections.api.map.primitive.IntBooleanMappublic boolean getIfAbsent(int key,
boolean ifAbsent)
getIfAbsent in interface com.gs.collections.api.map.primitive.IntBooleanMappublic boolean getOrThrow(int key)
getOrThrow in interface com.gs.collections.api.map.primitive.IntBooleanMappublic boolean getIfAbsentPut(int key,
boolean value)
getIfAbsentPut in interface com.gs.collections.api.map.primitive.MutableIntBooleanMappublic boolean getIfAbsentPut(int key,
com.gs.collections.api.block.function.primitive.BooleanFunction0 function)
getIfAbsentPut in interface com.gs.collections.api.map.primitive.MutableIntBooleanMappublic <P> boolean getIfAbsentPutWith(int key,
com.gs.collections.api.block.function.primitive.BooleanFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface com.gs.collections.api.map.primitive.MutableIntBooleanMappublic boolean getIfAbsentPutWithKey(int key,
com.gs.collections.api.block.function.primitive.IntToBooleanFunction function)
getIfAbsentPutWithKey in interface com.gs.collections.api.map.primitive.MutableIntBooleanMappublic boolean updateValue(int key,
boolean initialValueIfAbsent,
com.gs.collections.api.block.function.primitive.BooleanToBooleanFunction function)
updateValue in interface com.gs.collections.api.map.primitive.MutableIntBooleanMappublic void removeKey(int key)
removeKey in interface com.gs.collections.api.map.primitive.MutableIntBooleanMapremoveKey in interface MutableIntKeysMappublic void remove(int key)
remove in interface com.gs.collections.api.map.primitive.MutableIntBooleanMappublic boolean removeKeyIfAbsent(int key,
boolean value)
removeKeyIfAbsent in interface com.gs.collections.api.map.primitive.MutableIntBooleanMappublic boolean equals(java.lang.Object obj)
com.gs.collections.api.map.primitive.IntBooleanMapMap.equals(Object).equals in interface com.gs.collections.api.map.primitive.IntBooleanMapequals in class java.lang.Objectpublic int hashCode()
com.gs.collections.api.map.primitive.IntBooleanMapMap.hashCode().hashCode in interface com.gs.collections.api.map.primitive.IntBooleanMaphashCode in class java.lang.Objectpublic java.lang.String toString()
com.gs.collections.api.PrimitiveIterabletoString in interface com.gs.collections.api.map.primitive.IntBooleanMaptoString 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.IntProcedure procedure)
forEachKey in interface com.gs.collections.api.map.primitive.IntBooleanMapforEachKey in interface IntKeysMappublic void forEachKeyValue(com.gs.collections.api.block.procedure.primitive.IntBooleanProcedure procedure)
forEachKeyValue in interface com.gs.collections.api.map.primitive.IntBooleanMappublic IntBooleanHashMap select(com.gs.collections.api.block.predicate.primitive.IntBooleanPredicate predicate)
select in interface com.gs.collections.api.map.primitive.IntBooleanMapselect in interface com.gs.collections.api.map.primitive.MutableIntBooleanMappublic IntBooleanHashMap reject(com.gs.collections.api.block.predicate.primitive.IntBooleanPredicate predicate)
reject in interface com.gs.collections.api.map.primitive.IntBooleanMapreject in interface com.gs.collections.api.map.primitive.MutableIntBooleanMappublic com.gs.collections.api.LazyIntIterable keysView()
keysView in interface com.gs.collections.api.map.primitive.IntBooleanMappublic com.gs.collections.api.RichIterable<com.gs.collections.api.tuple.primitive.IntBooleanPair> keyValuesView()
keyValuesView in interface com.gs.collections.api.map.primitive.IntBooleanMappublic 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.MutableIntSet keySet()
keySet in interface com.gs.collections.api.map.primitive.IntBooleanMappublic com.gs.collections.api.collection.primitive.MutableBooleanCollection values()
values in interface com.gs.collections.api.map.primitive.BooleanValuesMap