Class ShortBooleanHashMap
- java.lang.Object
-
- org.eclipse.collections.impl.primitive.AbstractBooleanIterable
-
- org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableBooleanValuesMap
-
- org.eclipse.collections.impl.map.mutable.primitive.ShortBooleanHashMap
-
- All Implemented Interfaces:
Externalizable,Serializable,BooleanIterable,BooleanValuesMap,MutableBooleanValuesMap,MutableShortBooleanMap,ShortBooleanMap,PrimitiveIterable,MutableShortKeysMap,ShortKeysMap
public class ShortBooleanHashMap extends AbstractMutableBooleanValuesMap implements MutableShortBooleanMap, MutableShortKeysMap, Externalizable
This file was automatically generated from template file primitiveBooleanHashMap.stg.- Since:
- 3.0.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ShortBooleanHashMap()ShortBooleanHashMap(int initialCapacity)ShortBooleanHashMap(int initialCapacity, float loadFactor)Deprecated.in 5.1.0.ShortBooleanHashMap(ShortBooleanMap map)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description MutableShortBooleanMapasSynchronized()MutableShortBooleanMapasUnmodifiable()MutableBooleanIteratorbooleanIterator()voidclear()voidcompact()Deprecated.since 12.0 - UsetrimToSize()insteadbooleancontainsKey(short key)booleancontainsValue(boolean value)booleanequals(Object obj)voidforEachKey(ShortProcedure procedure)voidforEachKeyValue(ShortBooleanProcedure procedure)booleanget(short key)booleangetIfAbsent(short key, boolean ifAbsent)booleangetIfAbsentPut(short key, boolean value)booleangetIfAbsentPut(short key, BooleanFunction0 function)<P> booleangetIfAbsentPutWith(short key, BooleanFunction<? super P> function, P parameter)booleangetIfAbsentPutWithKey(short key, ShortToBooleanFunction function)booleangetOrThrow(short key)inthashCode()MutableShortSetkeySet()LazyShortIterablekeysView()RichIterable<ShortBooleanPair>keyValuesView()static ShortBooleanHashMapnewWithKeysValues(short key1, boolean value1)static ShortBooleanHashMapnewWithKeysValues(short key1, boolean value1, short key2, boolean value2)static ShortBooleanHashMapnewWithKeysValues(short key1, boolean value1, short key2, boolean value2, short key3, boolean value3)static ShortBooleanHashMapnewWithKeysValues(short key1, boolean value1, short key2, boolean value2, short key3, boolean value3, short key4, boolean value4)voidput(short key, boolean value)voidputAll(ShortBooleanMap map)voidreadExternal(ObjectInput in)ShortBooleanHashMapreject(ShortBooleanPredicate predicate)voidremove(short key)voidremoveKey(short key)booleanremoveKeyIfAbsent(short key, boolean value)ShortBooleanHashMapselect(ShortBooleanPredicate predicate)ImmutableShortBooleanMaptoImmutable()StringtoString()booleantrimToSize()booleanupdateValue(short key, boolean initialValueIfAbsent, BooleanToBooleanFunction function)voidupdateValues(ShortBooleanToBooleanFunction function)MutableBooleanCollectionvalues()ShortBooleanHashMapwithKeysValues(short key1, boolean value1, short key2, boolean value2)ShortBooleanHashMapwithKeysValues(short key1, boolean value1, short key2, boolean value2, short key3, boolean value3)ShortBooleanHashMapwithKeysValues(short key1, boolean value1, short key2, boolean value2, short key3, boolean value3, short key4, boolean value4)ShortBooleanHashMapwithKeyValue(short key1, boolean value1)ShortBooleanHashMapwithoutAllKeys(ShortIterable keys)ShortBooleanHashMapwithoutKey(short 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.MutableBooleanValuesMap
collect, reject, select
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableShortBooleanMap
getAndPut, putPair, withAllKeyValues
-
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.ShortBooleanMap
injectIntoKeyValue
-
Methods inherited from interface org.eclipse.collections.impl.map.primitive.ShortKeysMap
isEmpty, notEmpty, size
-
-
-
-
Constructor Detail
-
ShortBooleanHashMap
public ShortBooleanHashMap()
-
ShortBooleanHashMap
public ShortBooleanHashMap(int initialCapacity)
-
ShortBooleanHashMap
public ShortBooleanHashMap(ShortBooleanMap map)
-
ShortBooleanHashMap
@Deprecated public ShortBooleanHashMap(int initialCapacity, float loadFactor)
Deprecated.in 5.1.0.
-
-
Method Detail
-
asUnmodifiable
public MutableShortBooleanMap asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableShortBooleanMap
-
asSynchronized
public MutableShortBooleanMap asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableShortBooleanMap
-
toImmutable
public ImmutableShortBooleanMap toImmutable()
- Specified by:
toImmutablein interfaceShortBooleanMap
-
newWithKeysValues
public static ShortBooleanHashMap newWithKeysValues(short key1, boolean value1)
-
newWithKeysValues
public static ShortBooleanHashMap newWithKeysValues(short key1, boolean value1, short key2, boolean value2)
-
newWithKeysValues
public static ShortBooleanHashMap newWithKeysValues(short key1, boolean value1, short key2, boolean value2, short key3, boolean value3)
-
newWithKeysValues
public static ShortBooleanHashMap newWithKeysValues(short key1, boolean value1, short key2, boolean value2, short key3, boolean value3, short key4, boolean value4)
-
withKeyValue
public ShortBooleanHashMap withKeyValue(short key1, boolean value1)
- Specified by:
withKeyValuein interfaceMutableShortBooleanMap
-
withKeysValues
public ShortBooleanHashMap withKeysValues(short key1, boolean value1, short key2, boolean value2)
-
withKeysValues
public ShortBooleanHashMap withKeysValues(short key1, boolean value1, short key2, boolean value2, short key3, boolean value3)
-
withKeysValues
public ShortBooleanHashMap withKeysValues(short key1, boolean value1, short key2, boolean value2, short key3, boolean value3, short key4, boolean value4)
-
withoutKey
public ShortBooleanHashMap withoutKey(short key)
- Specified by:
withoutKeyin interfaceMutableShortBooleanMap
-
withoutAllKeys
public ShortBooleanHashMap withoutAllKeys(ShortIterable keys)
- Specified by:
withoutAllKeysin interfaceMutableShortBooleanMap
-
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 interfaceMutableShortKeysMap
-
put
public void put(short key, boolean value)- Specified by:
putin interfaceMutableShortBooleanMap
-
putAll
public void putAll(ShortBooleanMap map)
- Specified by:
putAllin interfaceMutableShortBooleanMap
-
updateValues
public void updateValues(ShortBooleanToBooleanFunction function)
- Specified by:
updateValuesin interfaceMutableShortBooleanMap
-
containsKey
public boolean containsKey(short key)
- Specified by:
containsKeyin interfaceShortBooleanMap- Specified by:
containsKeyin interfaceShortKeysMap
-
containsValue
public boolean containsValue(boolean value)
- Specified by:
containsValuein interfaceBooleanValuesMap
-
get
public boolean get(short key)
- Specified by:
getin interfaceShortBooleanMap
-
getIfAbsent
public boolean getIfAbsent(short key, boolean ifAbsent)- Specified by:
getIfAbsentin interfaceShortBooleanMap
-
getOrThrow
public boolean getOrThrow(short key)
- Specified by:
getOrThrowin interfaceShortBooleanMap
-
getIfAbsentPut
public boolean getIfAbsentPut(short key, boolean value)- Specified by:
getIfAbsentPutin interfaceMutableShortBooleanMap
-
getIfAbsentPut
public boolean getIfAbsentPut(short key, BooleanFunction0 function)- Specified by:
getIfAbsentPutin interfaceMutableShortBooleanMap
-
getIfAbsentPutWith
public <P> boolean getIfAbsentPutWith(short key, BooleanFunction<? super P> function, P parameter)- Specified by:
getIfAbsentPutWithin interfaceMutableShortBooleanMap
-
getIfAbsentPutWithKey
public boolean getIfAbsentPutWithKey(short key, ShortToBooleanFunction function)- Specified by:
getIfAbsentPutWithKeyin interfaceMutableShortBooleanMap
-
updateValue
public boolean updateValue(short key, boolean initialValueIfAbsent, BooleanToBooleanFunction function)- Specified by:
updateValuein interfaceMutableShortBooleanMap
-
removeKey
public void removeKey(short key)
- Specified by:
removeKeyin interfaceMutableShortBooleanMap- Specified by:
removeKeyin interfaceMutableShortKeysMap
-
remove
public void remove(short key)
- Specified by:
removein interfaceMutableShortBooleanMap
-
removeKeyIfAbsent
public boolean removeKeyIfAbsent(short key, boolean value)- Specified by:
removeKeyIfAbsentin interfaceMutableShortBooleanMap
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfaceShortBooleanMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceShortBooleanMap- Overrides:
hashCodein classObject
-
toString
public String toString()
- Specified by:
toStringin interfacePrimitiveIterable- Specified by:
toStringin interfaceShortBooleanMap- Overrides:
toStringin classAbstractBooleanIterable
-
booleanIterator
public MutableBooleanIterator booleanIterator()
- Specified by:
booleanIteratorin interfaceBooleanIterable- Specified by:
booleanIteratorin interfaceMutableBooleanValuesMap
-
forEachKey
public void forEachKey(ShortProcedure procedure)
- Specified by:
forEachKeyin interfaceShortBooleanMap- Specified by:
forEachKeyin interfaceShortKeysMap
-
forEachKeyValue
public void forEachKeyValue(ShortBooleanProcedure procedure)
- Specified by:
forEachKeyValuein interfaceShortBooleanMap
-
select
public ShortBooleanHashMap select(ShortBooleanPredicate predicate)
- Specified by:
selectin interfaceMutableShortBooleanMap- Specified by:
selectin interfaceShortBooleanMap
-
reject
public ShortBooleanHashMap reject(ShortBooleanPredicate predicate)
- Specified by:
rejectin interfaceMutableShortBooleanMap- Specified by:
rejectin interfaceShortBooleanMap
-
keysView
public LazyShortIterable keysView()
- Specified by:
keysViewin interfaceShortBooleanMap
-
keyValuesView
public RichIterable<ShortBooleanPair> keyValuesView()
- Specified by:
keyValuesViewin interfaceShortBooleanMap
-
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 MutableShortSet keySet()
- Specified by:
keySetin interfaceShortBooleanMap
-
values
public MutableBooleanCollection values()
- Specified by:
valuesin interfaceBooleanValuesMap
-
-