Class ObjectBooleanHashMapWithHashingStrategy<K>
- java.lang.Object
-
- org.eclipse.collections.impl.map.mutable.primitive.ObjectBooleanHashMapWithHashingStrategy<K>
-
- All Implemented Interfaces:
Externalizable,Serializable,BooleanIterable,MutableObjectBooleanMap<K>,ObjectBooleanMap<K>,PrimitiveIterable
public class ObjectBooleanHashMapWithHashingStrategy<K> extends Object implements MutableObjectBooleanMap<K>, Externalizable
- Since:
- 7.0.
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static booleanEMPTY_VALUE
-
Constructor Summary
Constructors Constructor Description ObjectBooleanHashMapWithHashingStrategy()Deprecated.No argument default constructor used for serialization.ObjectBooleanHashMapWithHashingStrategy(HashingStrategy<? super K> hashingStrategy)ObjectBooleanHashMapWithHashingStrategy(HashingStrategy<? super K> hashingStrategy, int initialCapacity)ObjectBooleanHashMapWithHashingStrategy(HashingStrategy<? super K> hashingStrategy, ObjectBooleanMap<? extends K> map)
-
Method Summary
-
Methods inherited from interface org.eclipse.collections.api.BooleanIterable
collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, containsAny, containsAny, containsNone, containsNone, flatCollect, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, reduce, reduceIfEmpty, reject, select
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableObjectBooleanMap
putPair, tap, withAllKeyValues
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.ObjectBooleanMap
injectIntoKeyValue
-
-
-
-
Field Detail
-
EMPTY_VALUE
public static final boolean EMPTY_VALUE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ObjectBooleanHashMapWithHashingStrategy
@Deprecated public ObjectBooleanHashMapWithHashingStrategy()
Deprecated.No argument default constructor used for serialization. Instantiating an ObjectBooleanHashMapWithHashingStrategy with this constructor will have a null hashingStrategy and throw NullPointerException when used.
-
ObjectBooleanHashMapWithHashingStrategy
public ObjectBooleanHashMapWithHashingStrategy(HashingStrategy<? super K> hashingStrategy)
-
ObjectBooleanHashMapWithHashingStrategy
public ObjectBooleanHashMapWithHashingStrategy(HashingStrategy<? super K> hashingStrategy, int initialCapacity)
-
ObjectBooleanHashMapWithHashingStrategy
public ObjectBooleanHashMapWithHashingStrategy(HashingStrategy<? super K> hashingStrategy, ObjectBooleanMap<? extends K> map)
-
-
Method Detail
-
newMap
public static <K> ObjectBooleanHashMapWithHashingStrategy<K> newMap(HashingStrategy<? super K> hashingStrategy)
-
newMap
public static <K> ObjectBooleanHashMapWithHashingStrategy<K> newMap(HashingStrategy<? super K> hashingStrategy, ObjectBooleanMap<K> map)
-
newMap
public static <K> ObjectBooleanHashMapWithHashingStrategy<K> newMap(ObjectBooleanHashMapWithHashingStrategy<K> map)
-
newMapWithInitialCapacity
public static <K> ObjectBooleanHashMapWithHashingStrategy<K> newMapWithInitialCapacity(HashingStrategy<? super K> hashingStrategy, int initialCapacity)
-
newWithKeysValues
public static <K> ObjectBooleanHashMapWithHashingStrategy<K> newWithKeysValues(HashingStrategy<? super K> hashingStrategy, K key, boolean value)
-
newWithKeysValues
public static <K> ObjectBooleanHashMapWithHashingStrategy<K> newWithKeysValues(HashingStrategy<? super K> hashingStrategy, K key1, boolean value1, K key2, boolean value2)
-
newWithKeysValues
public static <K> ObjectBooleanHashMapWithHashingStrategy<K> newWithKeysValues(HashingStrategy<? super K> hashingStrategy, K key1, boolean value1, K key2, boolean value2, K key3, boolean value3)
-
newWithKeysValues
public static <K> ObjectBooleanHashMapWithHashingStrategy<K> newWithKeysValues(HashingStrategy<? super K> hashingStrategy, K key1, boolean value1, K key2, boolean value2, K key3, boolean value3, K key4, boolean value4)
-
toString
public String 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
public String makeString()
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
public String makeString(String separator)
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
public String makeString(String start, String separator, String end)
- Specified by:
makeStringin interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable)
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable, String separator)
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable, String start, String separator, String end)
- Specified by:
appendStringin interfacePrimitiveIterable
-
booleanIterator
public MutableBooleanIterator 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
public boolean containsAll(BooleanIterable source)
- Specified by:
containsAllin interfaceBooleanIterable
-
forEach
public void forEach(BooleanProcedure procedure)
- Specified by:
forEachin interfaceBooleanIterable
-
each
public void each(BooleanProcedure procedure)
- Specified by:
eachin interfaceBooleanIterable
-
detectIfNone
public boolean detectIfNone(BooleanPredicate predicate, boolean ifNone)
- Specified by:
detectIfNonein interfaceBooleanIterable
-
select
public MutableBooleanCollection select(BooleanPredicate predicate)
- Specified by:
selectin interfaceBooleanIterable- Specified by:
selectin interfaceMutableObjectBooleanMap<K>
-
count
public int count(BooleanPredicate predicate)
- Specified by:
countin interfaceBooleanIterable
-
reject
public MutableBooleanCollection reject(BooleanPredicate predicate)
- Specified by:
rejectin interfaceBooleanIterable- Specified by:
rejectin interfaceMutableObjectBooleanMap<K>
-
anySatisfy
public boolean anySatisfy(BooleanPredicate predicate)
- Specified by:
anySatisfyin interfaceBooleanIterable
-
allSatisfy
public boolean allSatisfy(BooleanPredicate predicate)
- Specified by:
allSatisfyin interfaceBooleanIterable
-
collect
public <V> MutableCollection<V> collect(BooleanToObjectFunction<? extends V> function)
- Specified by:
collectin interfaceBooleanIterable- Specified by:
collectin interfaceMutableObjectBooleanMap<K>
-
noneSatisfy
public boolean noneSatisfy(BooleanPredicate predicate)
- Specified by:
noneSatisfyin interfaceBooleanIterable
-
toList
public MutableBooleanList toList()
- Specified by:
toListin interfaceBooleanIterable
-
toSet
public MutableBooleanSet toSet()
- Specified by:
toSetin interfaceBooleanIterable
-
toBag
public MutableBooleanBag toBag()
- Specified by:
toBagin interfaceBooleanIterable
-
asLazy
public LazyBooleanIterable asLazy()
- Specified by:
asLazyin interfaceBooleanIterable
-
injectInto
public <V> V injectInto(V injectedValue, ObjectBooleanToObjectFunction<? super V,? extends V> function)- Specified by:
injectIntoin interfaceBooleanIterable
-
chunk
public RichIterable<BooleanIterable> chunk(int size)
- Specified by:
chunkin interfaceBooleanIterable
-
clear
public void clear()
- Specified by:
clearin interfaceMutableObjectBooleanMap<K>
-
put
public void put(K key, boolean value)
- Specified by:
putin interfaceMutableObjectBooleanMap<K>
-
putAll
public void putAll(ObjectBooleanMap<? extends K> map)
- Specified by:
putAllin interfaceMutableObjectBooleanMap<K>
-
updateValues
public void updateValues(ObjectBooleanToBooleanFunction<? super K> function)
- Specified by:
updateValuesin interfaceMutableObjectBooleanMap<K>
-
removeKey
public void removeKey(K key)
- Specified by:
removeKeyin interfaceMutableObjectBooleanMap<K>
-
remove
public void remove(Object key)
- Specified by:
removein interfaceMutableObjectBooleanMap<K>
-
removeKeyIfAbsent
public boolean removeKeyIfAbsent(K key, boolean value)
- Specified by:
removeKeyIfAbsentin interfaceMutableObjectBooleanMap<K>
-
getIfAbsentPut
public boolean getIfAbsentPut(K key, boolean value)
- Specified by:
getIfAbsentPutin interfaceMutableObjectBooleanMap<K>
-
getAndPut
public boolean getAndPut(K key, boolean putValue, boolean defaultValue)
- Specified by:
getAndPutin interfaceMutableObjectBooleanMap<K>
-
getIfAbsentPut
public boolean getIfAbsentPut(K key, BooleanFunction0 function)
- Specified by:
getIfAbsentPutin interfaceMutableObjectBooleanMap<K>
-
getIfAbsentPutWithKey
public boolean getIfAbsentPutWithKey(K key, BooleanFunction<? super K> function)
- Specified by:
getIfAbsentPutWithKeyin interfaceMutableObjectBooleanMap<K>
-
getIfAbsentPutWith
public <P> boolean getIfAbsentPutWith(K key, BooleanFunction<? super P> function, P parameter)
- Specified by:
getIfAbsentPutWithin interfaceMutableObjectBooleanMap<K>
-
updateValue
public boolean updateValue(K key, boolean initialValueIfAbsent, BooleanToBooleanFunction function)
- Specified by:
updateValuein interfaceMutableObjectBooleanMap<K>
-
withKeyValue
public ObjectBooleanHashMapWithHashingStrategy<K> withKeyValue(K key1, boolean value1)
- Specified by:
withKeyValuein interfaceMutableObjectBooleanMap<K>
-
withoutKey
public ObjectBooleanHashMapWithHashingStrategy<K> withoutKey(K key)
- Specified by:
withoutKeyin interfaceMutableObjectBooleanMap<K>
-
withoutAllKeys
public ObjectBooleanHashMapWithHashingStrategy<K> withoutAllKeys(Iterable<? extends K> keys)
- Specified by:
withoutAllKeysin interfaceMutableObjectBooleanMap<K>
-
asUnmodifiable
public MutableObjectBooleanMap<K> asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableObjectBooleanMap<K>
-
asSynchronized
public MutableObjectBooleanMap<K> asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableObjectBooleanMap<K>
-
get
public boolean get(Object key)
- Specified by:
getin interfaceObjectBooleanMap<K>
-
getOrThrow
public boolean getOrThrow(Object key)
- Specified by:
getOrThrowin interfaceObjectBooleanMap<K>
-
getIfAbsent
public boolean getIfAbsent(Object key, boolean ifAbsent)
- Specified by:
getIfAbsentin interfaceObjectBooleanMap<K>
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKeyin interfaceObjectBooleanMap<K>
-
containsValue
public boolean containsValue(boolean value)
- Specified by:
containsValuein interfaceObjectBooleanMap<K>
-
forEachValue
public void forEachValue(BooleanProcedure procedure)
- Specified by:
forEachValuein interfaceObjectBooleanMap<K>
-
forEachKey
public void forEachKey(Procedure<? super K> procedure)
- Specified by:
forEachKeyin interfaceObjectBooleanMap<K>
-
forEachKeyValue
public void forEachKeyValue(ObjectBooleanProcedure<? super K> procedure)
- Specified by:
forEachKeyValuein interfaceObjectBooleanMap<K>
-
select
public ObjectBooleanHashMapWithHashingStrategy<K> select(ObjectBooleanPredicate<? super K> predicate)
- Specified by:
selectin interfaceMutableObjectBooleanMap<K>- Specified by:
selectin interfaceObjectBooleanMap<K>
-
reject
public ObjectBooleanHashMapWithHashingStrategy<K> reject(ObjectBooleanPredicate<? super K> predicate)
- Specified by:
rejectin interfaceMutableObjectBooleanMap<K>- Specified by:
rejectin interfaceObjectBooleanMap<K>
-
toImmutable
public ImmutableObjectBooleanMap<K> toImmutable()
- Specified by:
toImmutablein interfaceObjectBooleanMap<K>
-
keySet
public Set<K> keySet()
- Specified by:
keySetin interfaceObjectBooleanMap<K>
-
values
public MutableBooleanCollection values()
- Specified by:
valuesin interfaceObjectBooleanMap<K>
-
keysView
public LazyIterable<K> keysView()
- Specified by:
keysViewin interfaceObjectBooleanMap<K>
-
keyValuesView
public RichIterable<ObjectBooleanPair<K>> keyValuesView()
- Specified by:
keyValuesViewin interfaceObjectBooleanMap<K>
-
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
-
trimToSize
public boolean trimToSize()
- Since:
- 12.0
-
withKeysValues
public ObjectBooleanHashMapWithHashingStrategy<K> withKeysValues(K key1, boolean value1, K key2, boolean value2)
-
withKeysValues
public ObjectBooleanHashMapWithHashingStrategy<K> withKeysValues(K key1, boolean value1, K key2, boolean value2, K key3, boolean value3)
-
-