public class IntBooleanHashMap extends AbstractMutableBooleanValuesMap implements MutableIntBooleanMap, MutableIntKeysMap, Externalizable
| Constructor and Description |
|---|
IntBooleanHashMap() |
IntBooleanHashMap(int initialCapacity) |
IntBooleanHashMap(IntBooleanMap map) |
IntBooleanHashMap(int initialCapacity,
float loadFactor)
Deprecated.
in 5.1.0.
|
| Modifier and Type | Method and Description |
|---|---|
MutableIntBooleanMap |
asSynchronized() |
MutableIntBooleanMap |
asUnmodifiable() |
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(Object obj) |
void |
forEachKey(IntProcedure procedure) |
void |
forEachKeyValue(IntBooleanProcedure procedure) |
boolean |
get(int key) |
boolean |
getIfAbsent(int key,
boolean ifAbsent) |
boolean |
getIfAbsentPut(int key,
boolean value) |
boolean |
getIfAbsentPut(int key,
BooleanFunction0 function) |
<P> boolean |
getIfAbsentPutWith(int key,
BooleanFunction<? super P> function,
P parameter) |
boolean |
getIfAbsentPutWithKey(int key,
IntToBooleanFunction function) |
boolean |
getOrThrow(int key) |
int |
hashCode() |
MutableIntSet |
keySet() |
LazyIntIterable |
keysView() |
RichIterable<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(IntBooleanMap map) |
void |
readExternal(ObjectInput in) |
IntBooleanHashMap |
reject(IntBooleanPredicate predicate) |
void |
remove(int key) |
void |
removeKey(int key) |
boolean |
removeKeyIfAbsent(int key,
boolean value) |
IntBooleanHashMap |
select(IntBooleanPredicate predicate) |
ImmutableIntBooleanMap |
toImmutable() |
String |
toString() |
boolean |
updateValue(int key,
boolean initialValueIfAbsent,
BooleanToBooleanFunction function) |
void |
updateValues(IntBooleanToBooleanFunction function) |
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(IntIterable keys) |
IntBooleanHashMap |
withoutKey(int key) |
void |
writeExternal(ObjectOutput out) |
allSatisfy, anySatisfy, appendString, chunk, collect, contains, containsAll, count, detectIfNone, each, forEach, forEachValue, injectInto, isEmpty, noneSatisfy, notEmpty, reject, select, size, toArray, toArrayasLazy, toBag, toList, toSetgetAndPut, putPair, withAllKeyValuesinjectIntoKeyValuecollect, reject, selectforEachValue, tapallSatisfy, 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, toSetappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, sizeisEmpty, notEmpty, sizepublic IntBooleanHashMap()
public IntBooleanHashMap(int initialCapacity)
public IntBooleanHashMap(IntBooleanMap map)
@Deprecated public IntBooleanHashMap(int initialCapacity, float loadFactor)
public MutableIntBooleanMap asUnmodifiable()
asUnmodifiable in interface MutableIntBooleanMappublic MutableIntBooleanMap asSynchronized()
asSynchronized in interface MutableIntBooleanMappublic ImmutableIntBooleanMap toImmutable()
toImmutable in interface 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 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 MutableIntBooleanMappublic IntBooleanHashMap withoutAllKeys(IntIterable keys)
withoutAllKeys in interface MutableIntBooleanMappublic void compact()
public void clear()
clear in interface MutableBooleanValuesMapclear in interface MutableIntKeysMappublic void put(int key,
boolean value)
put in interface MutableIntBooleanMappublic void putAll(IntBooleanMap map)
putAll in interface MutableIntBooleanMappublic void updateValues(IntBooleanToBooleanFunction function)
updateValues in interface MutableIntBooleanMappublic boolean containsKey(int key)
containsKey in interface IntBooleanMapcontainsKey in interface IntKeysMappublic boolean containsValue(boolean value)
containsValue in interface BooleanValuesMappublic boolean get(int key)
get in interface IntBooleanMappublic boolean getIfAbsent(int key,
boolean ifAbsent)
getIfAbsent in interface IntBooleanMappublic boolean getOrThrow(int key)
getOrThrow in interface IntBooleanMappublic boolean getIfAbsentPut(int key,
boolean value)
getIfAbsentPut in interface MutableIntBooleanMappublic boolean getIfAbsentPut(int key,
BooleanFunction0 function)
getIfAbsentPut in interface MutableIntBooleanMappublic <P> boolean getIfAbsentPutWith(int key,
BooleanFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface MutableIntBooleanMappublic boolean getIfAbsentPutWithKey(int key,
IntToBooleanFunction function)
getIfAbsentPutWithKey in interface MutableIntBooleanMappublic boolean updateValue(int key,
boolean initialValueIfAbsent,
BooleanToBooleanFunction function)
updateValue in interface MutableIntBooleanMappublic void removeKey(int key)
removeKey in interface MutableIntBooleanMapremoveKey in interface MutableIntKeysMappublic void remove(int key)
remove in interface MutableIntBooleanMappublic boolean removeKeyIfAbsent(int key,
boolean value)
removeKeyIfAbsent in interface MutableIntBooleanMappublic boolean equals(Object obj)
equals in interface IntBooleanMapequals in class Objectpublic int hashCode()
hashCode in interface IntBooleanMaphashCode in class Objectpublic String toString()
toString in interface IntBooleanMaptoString in interface PrimitiveIterabletoString in class AbstractBooleanIterablepublic MutableBooleanIterator booleanIterator()
booleanIterator in interface BooleanIterablebooleanIterator in interface MutableBooleanValuesMappublic void forEachKey(IntProcedure procedure)
forEachKey in interface IntBooleanMapforEachKey in interface IntKeysMappublic void forEachKeyValue(IntBooleanProcedure procedure)
forEachKeyValue in interface IntBooleanMappublic IntBooleanHashMap select(IntBooleanPredicate predicate)
select in interface IntBooleanMapselect in interface MutableIntBooleanMappublic IntBooleanHashMap reject(IntBooleanPredicate predicate)
reject in interface IntBooleanMapreject in interface MutableIntBooleanMappublic LazyIntIterable keysView()
keysView in interface IntBooleanMappublic RichIterable<IntBooleanPair> keyValuesView()
keyValuesView in interface IntBooleanMappublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic MutableIntSet keySet()
keySet in interface IntBooleanMappublic MutableBooleanCollection values()
values in interface BooleanValuesMapCopyright © 2004–2022. All rights reserved.