Class LongBooleanHashMap
- java.lang.Object
-
- org.eclipse.collections.impl.primitive.AbstractBooleanIterable
-
- org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableBooleanValuesMap
-
- org.eclipse.collections.impl.map.mutable.primitive.LongBooleanHashMap
-
- All Implemented Interfaces:
Externalizable,Serializable,BooleanIterable,BooleanValuesMap,LongBooleanMap,MutableBooleanValuesMap,MutableLongBooleanMap,PrimitiveIterable,MutableLongKeysMap,LongKeysMap
public class LongBooleanHashMap extends AbstractMutableBooleanValuesMap implements MutableLongBooleanMap, MutableLongKeysMap, Externalizable
This file was automatically generated from template file primitiveBooleanHashMap.stg.- Since:
- 3.0.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LongBooleanHashMap()LongBooleanHashMap(int initialCapacity)LongBooleanHashMap(int initialCapacity, float loadFactor)Deprecated.in 5.1.0.LongBooleanHashMap(LongBooleanMap map)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description MutableLongBooleanMapasSynchronized()MutableLongBooleanMapasUnmodifiable()MutableBooleanIteratorbooleanIterator()voidclear()voidcompact()Deprecated.since 12.0 - UsetrimToSize()insteadbooleancontainsKey(long key)booleancontainsValue(boolean value)booleanequals(Object obj)voidforEachKey(LongProcedure procedure)voidforEachKeyValue(LongBooleanProcedure procedure)booleanget(long key)booleangetIfAbsent(long key, boolean ifAbsent)booleangetIfAbsentPut(long key, boolean value)booleangetIfAbsentPut(long key, BooleanFunction0 function)<P> booleangetIfAbsentPutWith(long key, BooleanFunction<? super P> function, P parameter)booleangetIfAbsentPutWithKey(long key, LongToBooleanFunction function)booleangetOrThrow(long key)inthashCode()MutableLongSetkeySet()LazyLongIterablekeysView()RichIterable<LongBooleanPair>keyValuesView()static LongBooleanHashMapnewWithKeysValues(long key1, boolean value1)static LongBooleanHashMapnewWithKeysValues(long key1, boolean value1, long key2, boolean value2)static LongBooleanHashMapnewWithKeysValues(long key1, boolean value1, long key2, boolean value2, long key3, boolean value3)static LongBooleanHashMapnewWithKeysValues(long key1, boolean value1, long key2, boolean value2, long key3, boolean value3, long key4, boolean value4)voidput(long key, boolean value)voidputAll(LongBooleanMap map)voidreadExternal(ObjectInput in)LongBooleanHashMapreject(LongBooleanPredicate predicate)voidremove(long key)voidremoveKey(long key)booleanremoveKeyIfAbsent(long key, boolean value)LongBooleanHashMapselect(LongBooleanPredicate predicate)ImmutableLongBooleanMaptoImmutable()StringtoString()booleantrimToSize()booleanupdateValue(long key, boolean initialValueIfAbsent, BooleanToBooleanFunction function)voidupdateValues(LongBooleanToBooleanFunction function)MutableBooleanCollectionvalues()LongBooleanHashMapwithKeysValues(long key1, boolean value1, long key2, boolean value2)LongBooleanHashMapwithKeysValues(long key1, boolean value1, long key2, boolean value2, long key3, boolean value3)LongBooleanHashMapwithKeysValues(long key1, boolean value1, long key2, boolean value2, long key3, boolean value3, long key4, boolean value4)LongBooleanHashMapwithKeyValue(long key1, boolean value1)LongBooleanHashMapwithoutAllKeys(LongIterable keys)LongBooleanHashMapwithoutKey(long 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.LongBooleanMap
injectIntoKeyValue
-
Methods inherited from interface org.eclipse.collections.impl.map.primitive.LongKeysMap
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.MutableLongBooleanMap
getAndPut, putPair, withAllKeyValues
-
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
-
-
-
-
Constructor Detail
-
LongBooleanHashMap
public LongBooleanHashMap()
-
LongBooleanHashMap
public LongBooleanHashMap(int initialCapacity)
-
LongBooleanHashMap
public LongBooleanHashMap(LongBooleanMap map)
-
LongBooleanHashMap
@Deprecated public LongBooleanHashMap(int initialCapacity, float loadFactor)
Deprecated.in 5.1.0.
-
-
Method Detail
-
asUnmodifiable
public MutableLongBooleanMap asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableLongBooleanMap
-
asSynchronized
public MutableLongBooleanMap asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableLongBooleanMap
-
toImmutable
public ImmutableLongBooleanMap toImmutable()
- Specified by:
toImmutablein interfaceLongBooleanMap
-
newWithKeysValues
public static LongBooleanHashMap newWithKeysValues(long key1, boolean value1)
-
newWithKeysValues
public static LongBooleanHashMap newWithKeysValues(long key1, boolean value1, long key2, boolean value2)
-
newWithKeysValues
public static LongBooleanHashMap newWithKeysValues(long key1, boolean value1, long key2, boolean value2, long key3, boolean value3)
-
newWithKeysValues
public static LongBooleanHashMap newWithKeysValues(long key1, boolean value1, long key2, boolean value2, long key3, boolean value3, long key4, boolean value4)
-
withKeyValue
public LongBooleanHashMap withKeyValue(long key1, boolean value1)
- Specified by:
withKeyValuein interfaceMutableLongBooleanMap
-
withKeysValues
public LongBooleanHashMap withKeysValues(long key1, boolean value1, long key2, boolean value2)
-
withKeysValues
public LongBooleanHashMap withKeysValues(long key1, boolean value1, long key2, boolean value2, long key3, boolean value3)
-
withKeysValues
public LongBooleanHashMap withKeysValues(long key1, boolean value1, long key2, boolean value2, long key3, boolean value3, long key4, boolean value4)
-
withoutKey
public LongBooleanHashMap withoutKey(long key)
- Specified by:
withoutKeyin interfaceMutableLongBooleanMap
-
withoutAllKeys
public LongBooleanHashMap withoutAllKeys(LongIterable keys)
- Specified by:
withoutAllKeysin interfaceMutableLongBooleanMap
-
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 interfaceMutableLongKeysMap
-
put
public void put(long key, boolean value)- Specified by:
putin interfaceMutableLongBooleanMap
-
putAll
public void putAll(LongBooleanMap map)
- Specified by:
putAllin interfaceMutableLongBooleanMap
-
updateValues
public void updateValues(LongBooleanToBooleanFunction function)
- Specified by:
updateValuesin interfaceMutableLongBooleanMap
-
containsKey
public boolean containsKey(long key)
- Specified by:
containsKeyin interfaceLongBooleanMap- Specified by:
containsKeyin interfaceLongKeysMap
-
containsValue
public boolean containsValue(boolean value)
- Specified by:
containsValuein interfaceBooleanValuesMap
-
get
public boolean get(long key)
- Specified by:
getin interfaceLongBooleanMap
-
getIfAbsent
public boolean getIfAbsent(long key, boolean ifAbsent)- Specified by:
getIfAbsentin interfaceLongBooleanMap
-
getOrThrow
public boolean getOrThrow(long key)
- Specified by:
getOrThrowin interfaceLongBooleanMap
-
getIfAbsentPut
public boolean getIfAbsentPut(long key, boolean value)- Specified by:
getIfAbsentPutin interfaceMutableLongBooleanMap
-
getIfAbsentPut
public boolean getIfAbsentPut(long key, BooleanFunction0 function)- Specified by:
getIfAbsentPutin interfaceMutableLongBooleanMap
-
getIfAbsentPutWith
public <P> boolean getIfAbsentPutWith(long key, BooleanFunction<? super P> function, P parameter)- Specified by:
getIfAbsentPutWithin interfaceMutableLongBooleanMap
-
getIfAbsentPutWithKey
public boolean getIfAbsentPutWithKey(long key, LongToBooleanFunction function)- Specified by:
getIfAbsentPutWithKeyin interfaceMutableLongBooleanMap
-
updateValue
public boolean updateValue(long key, boolean initialValueIfAbsent, BooleanToBooleanFunction function)- Specified by:
updateValuein interfaceMutableLongBooleanMap
-
removeKey
public void removeKey(long key)
- Specified by:
removeKeyin interfaceMutableLongBooleanMap- Specified by:
removeKeyin interfaceMutableLongKeysMap
-
remove
public void remove(long key)
- Specified by:
removein interfaceMutableLongBooleanMap
-
removeKeyIfAbsent
public boolean removeKeyIfAbsent(long key, boolean value)- Specified by:
removeKeyIfAbsentin interfaceMutableLongBooleanMap
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfaceLongBooleanMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceLongBooleanMap- Overrides:
hashCodein classObject
-
toString
public String toString()
- Specified by:
toStringin interfaceLongBooleanMap- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classAbstractBooleanIterable
-
booleanIterator
public MutableBooleanIterator booleanIterator()
- Specified by:
booleanIteratorin interfaceBooleanIterable- Specified by:
booleanIteratorin interfaceMutableBooleanValuesMap
-
forEachKey
public void forEachKey(LongProcedure procedure)
- Specified by:
forEachKeyin interfaceLongBooleanMap- Specified by:
forEachKeyin interfaceLongKeysMap
-
forEachKeyValue
public void forEachKeyValue(LongBooleanProcedure procedure)
- Specified by:
forEachKeyValuein interfaceLongBooleanMap
-
select
public LongBooleanHashMap select(LongBooleanPredicate predicate)
- Specified by:
selectin interfaceLongBooleanMap- Specified by:
selectin interfaceMutableLongBooleanMap
-
reject
public LongBooleanHashMap reject(LongBooleanPredicate predicate)
- Specified by:
rejectin interfaceLongBooleanMap- Specified by:
rejectin interfaceMutableLongBooleanMap
-
keysView
public LazyLongIterable keysView()
- Specified by:
keysViewin interfaceLongBooleanMap
-
keyValuesView
public RichIterable<LongBooleanPair> keyValuesView()
- Specified by:
keyValuesViewin interfaceLongBooleanMap
-
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 MutableLongSet keySet()
- Specified by:
keySetin interfaceLongBooleanMap
-
values
public MutableBooleanCollection values()
- Specified by:
valuesin interfaceBooleanValuesMap
-
-