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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ByteBooleanHashMap()ByteBooleanHashMap(int initialCapacity)ByteBooleanHashMap(int initialCapacity, float loadFactor)Deprecated.in 5.1.0.ByteBooleanHashMap(ByteBooleanMap map)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description MutableByteBooleanMapasSynchronized()MutableByteBooleanMapasUnmodifiable()MutableBooleanIteratorbooleanIterator()voidclear()voidcompact()Deprecated.since 12.0 - UsetrimToSize()insteadbooleancontainsKey(byte key)booleancontainsValue(boolean value)booleanequals(Object obj)voidforEachKey(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()MutableByteSetkeySet()LazyByteIterablekeysView()RichIterable<ByteBooleanPair>keyValuesView()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)voidreadExternal(ObjectInput in)ByteBooleanHashMapreject(ByteBooleanPredicate predicate)voidremove(byte key)voidremoveKey(byte key)booleanremoveKeyIfAbsent(byte key, boolean value)ByteBooleanHashMapselect(ByteBooleanPredicate predicate)ImmutableByteBooleanMaptoImmutable()StringtoString()booleantrimToSize()booleanupdateValue(byte key, boolean initialValueIfAbsent, BooleanToBooleanFunction function)voidupdateValues(ByteBooleanToBooleanFunction function)MutableBooleanCollectionvalues()ByteBooleanHashMapwithKeysValues(byte key1, boolean value1, byte key2, boolean value2)ByteBooleanHashMapwithKeysValues(byte key1, boolean value1, byte key2, boolean value2, byte key3, boolean value3)ByteBooleanHashMapwithKeysValues(byte key1, boolean value1, byte key2, boolean value2, byte key3, boolean value3, byte key4, boolean value4)ByteBooleanHashMapwithKeyValue(byte key1, boolean value1)ByteBooleanHashMapwithoutAllKeys(ByteIterable keys)ByteBooleanHashMapwithoutKey(byte 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.ByteBooleanMap
injectIntoKeyValue
-
Methods inherited from interface org.eclipse.collections.impl.map.primitive.ByteKeysMap
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.MutableByteBooleanMap
getAndPut, putPair, withAllKeyValues
-
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
-
-
-
-
Constructor Detail
-
ByteBooleanHashMap
public ByteBooleanHashMap()
-
ByteBooleanHashMap
public ByteBooleanHashMap(int initialCapacity)
-
ByteBooleanHashMap
public ByteBooleanHashMap(ByteBooleanMap map)
-
ByteBooleanHashMap
@Deprecated public ByteBooleanHashMap(int initialCapacity, float loadFactor)
Deprecated.in 5.1.0.
-
-
Method Detail
-
asUnmodifiable
public MutableByteBooleanMap asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableByteBooleanMap
-
asSynchronized
public MutableByteBooleanMap asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableByteBooleanMap
-
toImmutable
public ImmutableByteBooleanMap toImmutable()
- Specified by:
toImmutablein interfaceByteBooleanMap
-
newWithKeysValues
public static ByteBooleanHashMap newWithKeysValues(byte key1, boolean value1)
-
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
public ByteBooleanHashMap withKeyValue(byte key1, boolean value1)
- Specified by:
withKeyValuein interfaceMutableByteBooleanMap
-
withKeysValues
public ByteBooleanHashMap withKeysValues(byte key1, boolean value1, byte key2, boolean value2)
-
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
public ByteBooleanHashMap withoutKey(byte key)
- Specified by:
withoutKeyin interfaceMutableByteBooleanMap
-
withoutAllKeys
public ByteBooleanHashMap withoutAllKeys(ByteIterable keys)
- Specified by:
withoutAllKeysin interfaceMutableByteBooleanMap
-
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 interfaceMutableByteKeysMap
-
put
public void put(byte key, boolean value)- Specified by:
putin interfaceMutableByteBooleanMap
-
putAll
public void putAll(ByteBooleanMap map)
- Specified by:
putAllin interfaceMutableByteBooleanMap
-
updateValues
public void updateValues(ByteBooleanToBooleanFunction function)
- 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
public boolean getIfAbsentPut(byte key, BooleanFunction0 function)- Specified by:
getIfAbsentPutin interfaceMutableByteBooleanMap
-
getIfAbsentPutWith
public <P> boolean getIfAbsentPutWith(byte key, BooleanFunction<? super P> function, P parameter)- Specified by:
getIfAbsentPutWithin interfaceMutableByteBooleanMap
-
getIfAbsentPutWithKey
public boolean getIfAbsentPutWithKey(byte key, ByteToBooleanFunction function)- 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
public boolean equals(Object obj)
- Specified by:
equalsin interfaceByteBooleanMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceByteBooleanMap- Overrides:
hashCodein classObject
-
toString
public String toString()
- Specified by:
toStringin interfaceByteBooleanMap- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classAbstractBooleanIterable
-
booleanIterator
public MutableBooleanIterator booleanIterator()
- Specified by:
booleanIteratorin interfaceBooleanIterable- Specified by:
booleanIteratorin interfaceMutableBooleanValuesMap
-
forEachKey
public void forEachKey(ByteProcedure procedure)
- Specified by:
forEachKeyin interfaceByteBooleanMap- Specified by:
forEachKeyin interfaceByteKeysMap
-
forEachKeyValue
public void forEachKeyValue(ByteBooleanProcedure procedure)
- Specified by:
forEachKeyValuein interfaceByteBooleanMap
-
select
public ByteBooleanHashMap select(ByteBooleanPredicate predicate)
- Specified by:
selectin interfaceByteBooleanMap- Specified by:
selectin interfaceMutableByteBooleanMap
-
reject
public ByteBooleanHashMap reject(ByteBooleanPredicate predicate)
- Specified by:
rejectin interfaceByteBooleanMap- Specified by:
rejectin interfaceMutableByteBooleanMap
-
keysView
public LazyByteIterable keysView()
- Specified by:
keysViewin interfaceByteBooleanMap
-
keyValuesView
public RichIterable<ByteBooleanPair> keyValuesView()
- Specified by:
keyValuesViewin interfaceByteBooleanMap
-
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 MutableByteSet keySet()
- Specified by:
keySetin interfaceByteBooleanMap
-
values
public MutableBooleanCollection values()
- Specified by:
valuesin interfaceBooleanValuesMap
-
-