Class ObjectBooleanHashMap<K>
java.lang.Object
org.eclipse.collections.impl.map.mutable.primitive.ObjectBooleanHashMap<K>
- All Implemented Interfaces:
Externalizable,Serializable,BooleanIterable,MutableObjectBooleanMap<K>,ObjectBooleanMap<K>,PrimitiveIterable
public class ObjectBooleanHashMap<K>
extends Object
implements MutableObjectBooleanMap<K>, Externalizable
- Since:
- 3.0.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionObjectBooleanHashMap(int initialCapacity) ObjectBooleanHashMap(int initialCapacity, float loadFactor) Deprecated.in 5.1.0.ObjectBooleanHashMap(ObjectBooleanMap<? extends K> map) -
Method Summary
Modifier and TypeMethodDescriptionbooleanallSatisfy(BooleanPredicate predicate) booleananySatisfy(BooleanPredicate predicate) voidappendString(Appendable appendable) voidappendString(Appendable appendable, String separator) voidappendString(Appendable appendable, String start, String separator, String end) asLazy()chunk(int size) voidclear()<V> MutableCollection<V>collect(BooleanToObjectFunction<? extends V> function) booleancontains(boolean value) booleancontainsAll(boolean... source) booleancontainsAll(BooleanIterable source) booleancontainsKey(Object key) booleancontainsValue(boolean value) intcount(BooleanPredicate predicate) booleandetectIfNone(BooleanPredicate predicate, boolean ifNone) voideach(BooleanProcedure procedure) booleanvoidforEachKey(Procedure<? super K> procedure) voidforEachKeyValue(ObjectBooleanProcedure<? super K> procedure) voidforEachValue(BooleanProcedure procedure) booleanbooleanbooleangetIfAbsent(Object key, boolean ifAbsent) booleangetIfAbsentPut(K key, boolean value) booleangetIfAbsentPut(K key, BooleanFunction0 function) <P> booleangetIfAbsentPutWith(K key, BooleanFunction<? super P> function, P parameter) booleangetIfAbsentPutWithKey(K key, BooleanFunction<? super K> function) booleangetOrThrow(Object key) inthashCode()<V> VinjectInto(V injectedValue, ObjectBooleanToObjectFunction<? super V, ? extends V> function) booleanisEmpty()keySet()keysView()makeString(String separator) makeString(String start, String separator, String end) static <K> ObjectBooleanHashMap<K>newMap()static <K> ObjectBooleanHashMap<K>newWithKeysValues(K key1, boolean value1) static <K> ObjectBooleanHashMap<K>newWithKeysValues(K key1, boolean value1, K key2, boolean value2) static <K> ObjectBooleanHashMap<K>newWithKeysValues(K key1, boolean value1, K key2, boolean value2, K key3, boolean value3) static <K> ObjectBooleanHashMap<K>newWithKeysValues(K key1, boolean value1, K key2, boolean value2, K key3, boolean value3, K key4, boolean value4) booleannoneSatisfy(BooleanPredicate predicate) booleannotEmpty()voidvoidputAll(ObjectBooleanMap<? extends K> map) voidreject(BooleanPredicate predicate) reject(ObjectBooleanPredicate<? super K> predicate) voidvoidbooleanremoveKeyIfAbsent(K key, boolean value) select(BooleanPredicate predicate) select(ObjectBooleanPredicate<? super K> predicate) intsize()boolean[]toArray()boolean[]toArray(boolean[] result) toBag()toList()toSet()toString()booleanbooleanupdateValue(K key, boolean initialValueIfAbsent, BooleanToBooleanFunction function) voidupdateValues(ObjectBooleanToBooleanFunction<? super K> function) values()withKeysValues(K key1, boolean value1, K key2, boolean value2) withKeysValues(K key1, boolean value1, K key2, boolean value2, K key3, boolean value3) withKeysValues(K key1, boolean value1, K key2, boolean value2, K key3, boolean value3, K key4, boolean value4) withKeyValue(K key1, boolean value1) withoutAllKeys(Iterable<? extends K> keys) withoutKey(K key) voidMethods inherited from interface org.eclipse.collections.api.BooleanIterable
collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, containsAny, containsAny, containsNone, containsNone, flatCollect, forEach, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, reduce, reduceIfEmpty, reject, selectMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableObjectBooleanMap
putPair, tap, withAllKeyValuesMethods inherited from interface org.eclipse.collections.api.map.primitive.ObjectBooleanMap
allSatisfyKeyValue, injectIntoKeyValue
-
Field Details
-
EMPTY_VALUE
public static final boolean EMPTY_VALUE- See Also:
-
-
Constructor Details
-
ObjectBooleanHashMap
public ObjectBooleanHashMap() -
ObjectBooleanHashMap
public ObjectBooleanHashMap(int initialCapacity) -
ObjectBooleanHashMap
-
ObjectBooleanHashMap
Deprecated.in 5.1.0.
-
-
Method Details
-
newMap
-
newWithKeysValues
-
newWithKeysValues
public static <K> ObjectBooleanHashMap<K> newWithKeysValues(K key1, boolean value1, K key2, boolean value2) -
newWithKeysValues
public static <K> ObjectBooleanHashMap<K> newWithKeysValues(K key1, boolean value1, K key2, boolean value2, K key3, boolean value3) -
newWithKeysValues
public static <K> ObjectBooleanHashMap<K> newWithKeysValues(K key1, boolean value1, K key2, boolean value2, K key3, boolean value3, K key4, boolean value4) -
equals
-
hashCode
public int hashCode() -
toString
- Specified by:
toStringin interfaceObjectBooleanMap<K>- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classObject
-
size
public int size()- Specified by:
sizein interfacePrimitiveIterable
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfacePrimitiveIterable
-
notEmpty
public boolean notEmpty()- Specified by:
notEmptyin interfacePrimitiveIterable
-
makeString
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
- Specified by:
makeStringin interfacePrimitiveIterable
-
appendString
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
- Specified by:
appendStringin interfacePrimitiveIterable
-
booleanIterator
- Specified by:
booleanIteratorin interfaceBooleanIterable- Specified by:
booleanIteratorin interfaceMutableObjectBooleanMap<K>
-
toArray
public boolean[] toArray()- Specified by:
toArrayin interfaceBooleanIterable
-
toArray
public boolean[] toArray(boolean[] result) - Specified by:
toArrayin interfaceBooleanIterable
-
contains
public boolean contains(boolean value) - Specified by:
containsin interfaceBooleanIterable
-
containsAll
public boolean containsAll(boolean... source) - Specified by:
containsAllin interfaceBooleanIterable
-
containsAll
- Specified by:
containsAllin interfaceBooleanIterable
-
each
- Specified by:
eachin interfaceBooleanIterable- Since:
- 7.0.
-
detectIfNone
- Specified by:
detectIfNonein interfaceBooleanIterable
-
select
- Specified by:
selectin interfaceBooleanIterable- Specified by:
selectin interfaceMutableObjectBooleanMap<K>
-
count
- Specified by:
countin interfaceBooleanIterable
-
reject
- Specified by:
rejectin interfaceBooleanIterable- Specified by:
rejectin interfaceMutableObjectBooleanMap<K>
-
anySatisfy
- Specified by:
anySatisfyin interfaceBooleanIterable
-
allSatisfy
- Specified by:
allSatisfyin interfaceBooleanIterable
-
collect
- Specified by:
collectin interfaceBooleanIterable- Specified by:
collectin interfaceMutableObjectBooleanMap<K>
-
noneSatisfy
- Specified by:
noneSatisfyin interfaceBooleanIterable
-
toList
- Specified by:
toListin interfaceBooleanIterable
-
toSet
- Specified by:
toSetin interfaceBooleanIterable
-
toBag
- Specified by:
toBagin interfaceBooleanIterable
-
asLazy
- Specified by:
asLazyin interfaceBooleanIterable
-
injectInto
public <V> V injectInto(V injectedValue, ObjectBooleanToObjectFunction<? super V, ? extends V> function) - Specified by:
injectIntoin interfaceBooleanIterable
-
chunk
- Specified by:
chunkin interfaceBooleanIterable
-
clear
public void clear()- Specified by:
clearin interfaceMutableObjectBooleanMap<K>
-
put
- Specified by:
putin interfaceMutableObjectBooleanMap<K>
-
putAll
- Specified by:
putAllin interfaceMutableObjectBooleanMap<K>
-
updateValues
- Specified by:
updateValuesin interfaceMutableObjectBooleanMap<K>
-
removeKey
- Specified by:
removeKeyin interfaceMutableObjectBooleanMap<K>
-
remove
- Specified by:
removein interfaceMutableObjectBooleanMap<K>
-
removeKeyIfAbsent
- Specified by:
removeKeyIfAbsentin interfaceMutableObjectBooleanMap<K>
-
getIfAbsentPut
- Specified by:
getIfAbsentPutin interfaceMutableObjectBooleanMap<K>
-
getAndPut
- Specified by:
getAndPutin interfaceMutableObjectBooleanMap<K>
-
getIfAbsentPut
- Specified by:
getIfAbsentPutin interfaceMutableObjectBooleanMap<K>
-
getIfAbsentPutWithKey
- Specified by:
getIfAbsentPutWithKeyin interfaceMutableObjectBooleanMap<K>
-
getIfAbsentPutWith
- Specified by:
getIfAbsentPutWithin interfaceMutableObjectBooleanMap<K>
-
updateValue
- Specified by:
updateValuein interfaceMutableObjectBooleanMap<K>
-
withKeyValue
- Specified by:
withKeyValuein interfaceMutableObjectBooleanMap<K>
-
withoutKey
- Specified by:
withoutKeyin interfaceMutableObjectBooleanMap<K>
-
withoutAllKeys
- Specified by:
withoutAllKeysin interfaceMutableObjectBooleanMap<K>
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableObjectBooleanMap<K>
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableObjectBooleanMap<K>
-
get
- Specified by:
getin interfaceObjectBooleanMap<K>
-
getOrThrow
- Specified by:
getOrThrowin interfaceObjectBooleanMap<K>
-
getIfAbsent
- Specified by:
getIfAbsentin interfaceObjectBooleanMap<K>
-
containsKey
- Specified by:
containsKeyin interfaceObjectBooleanMap<K>
-
containsValue
public boolean containsValue(boolean value) - Specified by:
containsValuein interfaceObjectBooleanMap<K>
-
forEachValue
- Specified by:
forEachValuein interfaceObjectBooleanMap<K>
-
forEachKey
- Specified by:
forEachKeyin interfaceObjectBooleanMap<K>
-
forEachKeyValue
- Specified by:
forEachKeyValuein interfaceObjectBooleanMap<K>
-
select
- Specified by:
selectin interfaceMutableObjectBooleanMap<K>- Specified by:
selectin interfaceObjectBooleanMap<K>
-
reject
- Specified by:
rejectin interfaceMutableObjectBooleanMap<K>- Specified by:
rejectin interfaceObjectBooleanMap<K>
-
toImmutable
- Specified by:
toImmutablein interfaceObjectBooleanMap<K>
-
keySet
- Specified by:
keySetin interfaceObjectBooleanMap<K>
-
values
- Specified by:
valuesin interfaceObjectBooleanMap<K>
-
keysView
- Specified by:
keysViewin interfaceObjectBooleanMap<K>
-
keyValuesView
- Specified by:
keyValuesViewin interfaceObjectBooleanMap<K>
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
trimToSize
public boolean trimToSize()- Since:
- 12.0
-
withKeysValues
-
withKeysValues
public ObjectBooleanHashMap<K> withKeysValues(K key1, boolean value1, K key2, boolean value2, K key3, boolean value3) -
withKeysValues
-