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