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