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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IntBooleanHashMap()IntBooleanHashMap(int initialCapacity)IntBooleanHashMap(int initialCapacity, float loadFactor)Deprecated.in 5.1.0.IntBooleanHashMap(IntBooleanMap map)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description MutableIntBooleanMapasSynchronized()MutableIntBooleanMapasUnmodifiable()MutableBooleanIteratorbooleanIterator()voidclear()voidcompact()Deprecated.since 12.0 - UsetrimToSize()insteadbooleancontainsKey(int key)booleancontainsValue(boolean value)booleanequals(Object obj)voidforEachKey(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()MutableIntSetkeySet()LazyIntIterablekeysView()RichIterable<IntBooleanPair>keyValuesView()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)voidreadExternal(ObjectInput in)IntBooleanHashMapreject(IntBooleanPredicate predicate)voidremove(int key)voidremoveKey(int key)booleanremoveKeyIfAbsent(int key, boolean value)IntBooleanHashMapselect(IntBooleanPredicate predicate)ImmutableIntBooleanMaptoImmutable()StringtoString()booleantrimToSize()booleanupdateValue(int key, boolean initialValueIfAbsent, BooleanToBooleanFunction function)voidupdateValues(IntBooleanToBooleanFunction function)MutableBooleanCollectionvalues()IntBooleanHashMapwithKeysValues(int key1, boolean value1, int key2, boolean value2)IntBooleanHashMapwithKeysValues(int key1, boolean value1, int key2, boolean value2, int key3, boolean value3)IntBooleanHashMapwithKeysValues(int key1, boolean value1, int key2, boolean value2, int key3, boolean value3, int key4, boolean value4)IntBooleanHashMapwithKeyValue(int key1, boolean value1)IntBooleanHashMapwithoutAllKeys(IntIterable keys)IntBooleanHashMapwithoutKey(int key)voidwriteExternal(ObjectOutput out)-
Methods 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, toArray
-
Methods inherited from class org.eclipse.collections.impl.primitive.AbstractBooleanIterable
asLazy, toBag, toList, toSet
-
Methods 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, toSet
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.BooleanValuesMap
forEachValue, tap
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.IntBooleanMap
injectIntoKeyValue
-
Methods inherited from interface org.eclipse.collections.impl.map.primitive.IntKeysMap
isEmpty, notEmpty, size
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableBooleanValuesMap
collect, reject, select
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableIntBooleanMap
getAndPut, putPair, withAllKeyValues
-
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
-
-
-
-
Constructor Detail
-
IntBooleanHashMap
public IntBooleanHashMap()
-
IntBooleanHashMap
public IntBooleanHashMap(int initialCapacity)
-
IntBooleanHashMap
public IntBooleanHashMap(IntBooleanMap map)
-
IntBooleanHashMap
@Deprecated public IntBooleanHashMap(int initialCapacity, float loadFactor)
Deprecated.in 5.1.0.
-
-
Method Detail
-
asUnmodifiable
public MutableIntBooleanMap asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableIntBooleanMap
-
asSynchronized
public MutableIntBooleanMap asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableIntBooleanMap
-
toImmutable
public ImmutableIntBooleanMap toImmutable()
- Specified by:
toImmutablein interfaceIntBooleanMap
-
newWithKeysValues
public static IntBooleanHashMap newWithKeysValues(int key1, boolean value1)
-
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
public IntBooleanHashMap withKeyValue(int key1, boolean value1)
- Specified by:
withKeyValuein interfaceMutableIntBooleanMap
-
withKeysValues
public IntBooleanHashMap withKeysValues(int key1, boolean value1, int key2, boolean value2)
-
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
public IntBooleanHashMap withoutKey(int key)
- Specified by:
withoutKeyin interfaceMutableIntBooleanMap
-
withoutAllKeys
public IntBooleanHashMap withoutAllKeys(IntIterable keys)
- Specified by:
withoutAllKeysin interfaceMutableIntBooleanMap
-
trimToSize
public boolean trimToSize()
- Since:
- 12.0
-
compact
@Deprecated public void 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
public void putAll(IntBooleanMap map)
- Specified by:
putAllin interfaceMutableIntBooleanMap
-
updateValues
public void updateValues(IntBooleanToBooleanFunction function)
- 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
public boolean getIfAbsentPut(int key, BooleanFunction0 function)- Specified by:
getIfAbsentPutin interfaceMutableIntBooleanMap
-
getIfAbsentPutWith
public <P> boolean getIfAbsentPutWith(int key, BooleanFunction<? super P> function, P parameter)- Specified by:
getIfAbsentPutWithin interfaceMutableIntBooleanMap
-
getIfAbsentPutWithKey
public boolean getIfAbsentPutWithKey(int key, IntToBooleanFunction function)- 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
public boolean equals(Object obj)
- Specified by:
equalsin interfaceIntBooleanMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceIntBooleanMap- Overrides:
hashCodein classObject
-
toString
public String toString()
- Specified by:
toStringin interfaceIntBooleanMap- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classAbstractBooleanIterable
-
booleanIterator
public MutableBooleanIterator booleanIterator()
- Specified by:
booleanIteratorin interfaceBooleanIterable- Specified by:
booleanIteratorin interfaceMutableBooleanValuesMap
-
forEachKey
public void forEachKey(IntProcedure procedure)
- Specified by:
forEachKeyin interfaceIntBooleanMap- Specified by:
forEachKeyin interfaceIntKeysMap
-
forEachKeyValue
public void forEachKeyValue(IntBooleanProcedure procedure)
- Specified by:
forEachKeyValuein interfaceIntBooleanMap
-
select
public IntBooleanHashMap select(IntBooleanPredicate predicate)
- Specified by:
selectin interfaceIntBooleanMap- Specified by:
selectin interfaceMutableIntBooleanMap
-
reject
public IntBooleanHashMap reject(IntBooleanPredicate predicate)
- Specified by:
rejectin interfaceIntBooleanMap- Specified by:
rejectin interfaceMutableIntBooleanMap
-
keysView
public LazyIntIterable keysView()
- Specified by:
keysViewin interfaceIntBooleanMap
-
keyValuesView
public RichIterable<IntBooleanPair> keyValuesView()
- Specified by:
keyValuesViewin interfaceIntBooleanMap
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
keySet
public MutableIntSet keySet()
- Specified by:
keySetin interfaceIntBooleanMap
-
values
public MutableBooleanCollection values()
- Specified by:
valuesin interfaceBooleanValuesMap
-
-