Class IntBooleanHashMap
java.lang.Object
org.eclipse.collections.impl.primitive.AbstractBooleanIterable
org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableBooleanValuesMap
org.eclipse.collections.impl.map.mutable.primitive.IntBooleanHashMap
- All Implemented Interfaces:
Externalizable,Serializable,BooleanIterable,BooleanValuesMap,IntBooleanMap,MutableBooleanValuesMap,MutableIntBooleanMap,PrimitiveIterable,MutableIntKeysMap,IntKeysMap
public class IntBooleanHashMap
extends AbstractMutableBooleanValuesMap
implements MutableIntBooleanMap, MutableIntKeysMap, Externalizable
This file was automatically generated from template file primitiveBooleanHashMap.stg.
- Since:
- 3.0.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionIntBooleanHashMap(int initialCapacity) IntBooleanHashMap(int initialCapacity, float loadFactor) Deprecated.in 5.1.0. -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()voidcompact()Deprecated.since 12.0 - UsetrimToSize()insteadbooleancontainsKey(int key) booleancontainsValue(boolean value) booleanvoidforEachKey(IntProcedure procedure) voidforEachKeyValue(IntBooleanProcedure procedure) booleanget(int key) booleangetIfAbsent(int key, boolean ifAbsent) booleangetIfAbsentPut(int key, boolean value) booleangetIfAbsentPut(int key, BooleanFunction0 function) <P> booleangetIfAbsentPutWith(int key, BooleanFunction<? super P> function, P parameter) booleangetIfAbsentPutWithKey(int key, IntToBooleanFunction function) booleangetOrThrow(int key) inthashCode()keySet()keysView()static IntBooleanHashMapnewWithKeysValues(int key1, boolean value1) static IntBooleanHashMapnewWithKeysValues(int key1, boolean value1, int key2, boolean value2) static IntBooleanHashMapnewWithKeysValues(int key1, boolean value1, int key2, boolean value2, int key3, boolean value3) static IntBooleanHashMapnewWithKeysValues(int key1, boolean value1, int key2, boolean value2, int key3, boolean value3, int key4, boolean value4) voidput(int key, boolean value) voidputAll(IntBooleanMap map) voidreject(IntBooleanPredicate predicate) voidremove(int key) voidremoveKey(int key) booleanremoveKeyIfAbsent(int key, boolean value) select(IntBooleanPredicate predicate) toString()booleanbooleanupdateValue(int key, boolean initialValueIfAbsent, BooleanToBooleanFunction function) voidupdateValues(IntBooleanToBooleanFunction function) values()withKeysValues(int key1, boolean value1, int key2, boolean value2) withKeysValues(int key1, boolean value1, int key2, boolean value2, int key3, boolean value3) withKeysValues(int key1, boolean value1, int key2, boolean value2, int key3, boolean value3, int key4, boolean value4) withKeyValue(int key1, boolean value1) withoutAllKeys(IntIterable keys) withoutKey(int key) voidMethods 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, toArrayMethods inherited from class org.eclipse.collections.impl.primitive.AbstractBooleanIterable
asLazy, toBag, toList, toSetMethods 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, toSetMethods inherited from interface org.eclipse.collections.api.map.primitive.BooleanValuesMap
forEachValue, tapMethods inherited from interface org.eclipse.collections.api.map.primitive.IntBooleanMap
allSatisfyKeyValue, injectIntoKeyValueMethods inherited from interface org.eclipse.collections.impl.map.primitive.IntKeysMap
isEmpty, notEmpty, sizeMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableBooleanValuesMap
collect, reject, selectMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableIntBooleanMap
getAndPut, putPair, withAllKeyValuesMethods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
-
Constructor Details
-
IntBooleanHashMap
public IntBooleanHashMap() -
IntBooleanHashMap
public IntBooleanHashMap(int initialCapacity) -
IntBooleanHashMap
-
IntBooleanHashMap
Deprecated.in 5.1.0.
-
-
Method Details
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableIntBooleanMap
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableIntBooleanMap
-
toImmutable
- Specified by:
toImmutablein interfaceIntBooleanMap
-
newWithKeysValues
-
newWithKeysValues
public static IntBooleanHashMap newWithKeysValues(int key1, boolean value1, int key2, boolean value2) -
newWithKeysValues
public static IntBooleanHashMap newWithKeysValues(int key1, boolean value1, int key2, boolean value2, int key3, boolean value3) -
newWithKeysValues
public static IntBooleanHashMap newWithKeysValues(int key1, boolean value1, int key2, boolean value2, int key3, boolean value3, int key4, boolean value4) -
withKeyValue
- Specified by:
withKeyValuein interfaceMutableIntBooleanMap
-
withKeysValues
-
withKeysValues
public IntBooleanHashMap withKeysValues(int key1, boolean value1, int key2, boolean value2, int key3, boolean value3) -
withKeysValues
public IntBooleanHashMap withKeysValues(int key1, boolean value1, int key2, boolean value2, int key3, boolean value3, int key4, boolean value4) -
withoutKey
- Specified by:
withoutKeyin interfaceMutableIntBooleanMap
-
withoutAllKeys
- Specified by:
withoutAllKeysin interfaceMutableIntBooleanMap
-
trimToSize
public boolean trimToSize()- Since:
- 12.0
-
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:
clearin interfaceMutableBooleanValuesMap- Specified by:
clearin interfaceMutableIntKeysMap
-
put
public void put(int key, boolean value) - Specified by:
putin interfaceMutableIntBooleanMap
-
putAll
- Specified by:
putAllin interfaceMutableIntBooleanMap
-
updateValues
- Specified by:
updateValuesin interfaceMutableIntBooleanMap
-
containsKey
public boolean containsKey(int key) - Specified by:
containsKeyin interfaceIntBooleanMap- Specified by:
containsKeyin interfaceIntKeysMap
-
containsValue
public boolean containsValue(boolean value) - Specified by:
containsValuein interfaceBooleanValuesMap
-
get
public boolean get(int key) - Specified by:
getin interfaceIntBooleanMap
-
getIfAbsent
public boolean getIfAbsent(int key, boolean ifAbsent) - Specified by:
getIfAbsentin interfaceIntBooleanMap
-
getOrThrow
public boolean getOrThrow(int key) - Specified by:
getOrThrowin interfaceIntBooleanMap
-
getIfAbsentPut
public boolean getIfAbsentPut(int key, boolean value) - Specified by:
getIfAbsentPutin interfaceMutableIntBooleanMap
-
getIfAbsentPut
- Specified by:
getIfAbsentPutin interfaceMutableIntBooleanMap
-
getIfAbsentPutWith
- Specified by:
getIfAbsentPutWithin interfaceMutableIntBooleanMap
-
getIfAbsentPutWithKey
- Specified by:
getIfAbsentPutWithKeyin interfaceMutableIntBooleanMap
-
updateValue
public boolean updateValue(int key, boolean initialValueIfAbsent, BooleanToBooleanFunction function) - Specified by:
updateValuein interfaceMutableIntBooleanMap
-
removeKey
public void removeKey(int key) - Specified by:
removeKeyin interfaceMutableIntBooleanMap- Specified by:
removeKeyin interfaceMutableIntKeysMap
-
remove
public void remove(int key) - Specified by:
removein interfaceMutableIntBooleanMap
-
removeKeyIfAbsent
public boolean removeKeyIfAbsent(int key, boolean value) - Specified by:
removeKeyIfAbsentin interfaceMutableIntBooleanMap
-
equals
- Specified by:
equalsin interfaceIntBooleanMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceIntBooleanMap- Overrides:
hashCodein classObject
-
toString
- Specified by:
toStringin interfaceIntBooleanMap- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classAbstractBooleanIterable
-
booleanIterator
- Specified by:
booleanIteratorin interfaceBooleanIterable- Specified by:
booleanIteratorin interfaceMutableBooleanValuesMap
-
forEachKey
- Specified by:
forEachKeyin interfaceIntBooleanMap- Specified by:
forEachKeyin interfaceIntKeysMap
-
forEachKeyValue
- Specified by:
forEachKeyValuein interfaceIntBooleanMap
-
select
- Specified by:
selectin interfaceIntBooleanMap- Specified by:
selectin interfaceMutableIntBooleanMap
-
reject
- Specified by:
rejectin interfaceIntBooleanMap- Specified by:
rejectin interfaceMutableIntBooleanMap
-
keysView
- Specified by:
keysViewin interfaceIntBooleanMap
-
keyValuesView
- Specified by:
keyValuesViewin interfaceIntBooleanMap
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
keySet
- Specified by:
keySetin interfaceIntBooleanMap
-
values
- Specified by:
valuesin interfaceBooleanValuesMap
-