Class UnmodifiableObjectBooleanMap<K>
- java.lang.Object
-
- org.eclipse.collections.impl.map.mutable.primitive.UnmodifiableObjectBooleanMap<K>
-
- All Implemented Interfaces:
Serializable
,BooleanIterable
,MutableObjectBooleanMap<K>
,ObjectBooleanMap<K>
,PrimitiveIterable
public class UnmodifiableObjectBooleanMap<K> extends Object implements MutableObjectBooleanMap<K>, Serializable
This file was automatically generated from template file unmodifiableObjectPrimitiveMap.stg.- Since:
- 3.2
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnmodifiableObjectBooleanMap(MutableObjectBooleanMap<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, forEach, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, reduce, reduceIfEmpty, reject, select
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableObjectBooleanMap
tap, withAllKeyValues
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.ObjectBooleanMap
injectIntoKeyValue
-
-
-
-
Constructor Detail
-
UnmodifiableObjectBooleanMap
public UnmodifiableObjectBooleanMap(MutableObjectBooleanMap<K> map)
-
-
Method Detail
-
getAndPut
public boolean getAndPut(K key, boolean defaultValue, boolean putValue)
- Specified by:
getAndPut
in interfaceMutableObjectBooleanMap<K>
-
clear
public void clear()
- Specified by:
clear
in interfaceMutableObjectBooleanMap<K>
-
put
public void put(K key, boolean value)
- Specified by:
put
in interfaceMutableObjectBooleanMap<K>
-
putPair
public void putPair(ObjectBooleanPair<K> keyValuePair)
- Specified by:
putPair
in interfaceMutableObjectBooleanMap<K>
-
putAll
public void putAll(ObjectBooleanMap<? extends K> map)
- Specified by:
putAll
in interfaceMutableObjectBooleanMap<K>
-
updateValues
public void updateValues(ObjectBooleanToBooleanFunction<? super K> function)
- Specified by:
updateValues
in interfaceMutableObjectBooleanMap<K>
-
removeKey
public void removeKey(K key)
- Specified by:
removeKey
in interfaceMutableObjectBooleanMap<K>
-
remove
public void remove(Object key)
- Specified by:
remove
in interfaceMutableObjectBooleanMap<K>
-
removeKeyIfAbsent
public boolean removeKeyIfAbsent(K key, boolean value)
- Specified by:
removeKeyIfAbsent
in interfaceMutableObjectBooleanMap<K>
-
getIfAbsentPut
public boolean getIfAbsentPut(K key, boolean value)
- Specified by:
getIfAbsentPut
in interfaceMutableObjectBooleanMap<K>
-
getIfAbsentPut
public boolean getIfAbsentPut(K key, BooleanFunction0 function)
- Specified by:
getIfAbsentPut
in interfaceMutableObjectBooleanMap<K>
-
getIfAbsentPutWithKey
public boolean getIfAbsentPutWithKey(K key, BooleanFunction<? super K> function)
- Specified by:
getIfAbsentPutWithKey
in interfaceMutableObjectBooleanMap<K>
-
getIfAbsentPutWith
public <P> boolean getIfAbsentPutWith(K key, BooleanFunction<? super P> function, P parameter)
- Specified by:
getIfAbsentPutWith
in interfaceMutableObjectBooleanMap<K>
-
updateValue
public boolean updateValue(K key, boolean initialValueIfAbsent, BooleanToBooleanFunction function)
- Specified by:
updateValue
in interfaceMutableObjectBooleanMap<K>
-
addToValue
public boolean addToValue(K key, boolean toBeAdded)
-
get
public boolean get(Object key)
- Specified by:
get
in interfaceObjectBooleanMap<K>
-
getOrThrow
public boolean getOrThrow(Object key)
- Specified by:
getOrThrow
in interfaceObjectBooleanMap<K>
-
getIfAbsent
public boolean getIfAbsent(Object key, boolean ifAbsent)
- Specified by:
getIfAbsent
in interfaceObjectBooleanMap<K>
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKey
in interfaceObjectBooleanMap<K>
-
containsValue
public boolean containsValue(boolean value)
- Specified by:
containsValue
in interfaceObjectBooleanMap<K>
-
forEachValue
public void forEachValue(BooleanProcedure procedure)
- Specified by:
forEachValue
in interfaceObjectBooleanMap<K>
-
forEachKey
public void forEachKey(Procedure<? super K> procedure)
- Specified by:
forEachKey
in interfaceObjectBooleanMap<K>
-
forEachKeyValue
public void forEachKeyValue(ObjectBooleanProcedure<? super K> procedure)
- Specified by:
forEachKeyValue
in interfaceObjectBooleanMap<K>
-
select
public MutableObjectBooleanMap<K> select(ObjectBooleanPredicate<? super K> predicate)
- Specified by:
select
in interfaceMutableObjectBooleanMap<K>
- Specified by:
select
in interfaceObjectBooleanMap<K>
-
reject
public MutableObjectBooleanMap<K> reject(ObjectBooleanPredicate<? super K> predicate)
- Specified by:
reject
in interfaceMutableObjectBooleanMap<K>
- Specified by:
reject
in interfaceObjectBooleanMap<K>
-
booleanIterator
public MutableBooleanIterator booleanIterator()
- Specified by:
booleanIterator
in interfaceBooleanIterable
- Specified by:
booleanIterator
in interfaceMutableObjectBooleanMap<K>
-
each
public void each(BooleanProcedure procedure)
- Specified by:
each
in interfaceBooleanIterable
- Since:
- 7.0.
-
count
public int count(BooleanPredicate predicate)
- Specified by:
count
in interfaceBooleanIterable
-
anySatisfy
public boolean anySatisfy(BooleanPredicate predicate)
- Specified by:
anySatisfy
in interfaceBooleanIterable
-
allSatisfy
public boolean allSatisfy(BooleanPredicate predicate)
- Specified by:
allSatisfy
in interfaceBooleanIterable
-
noneSatisfy
public boolean noneSatisfy(BooleanPredicate predicate)
- Specified by:
noneSatisfy
in interfaceBooleanIterable
-
select
public MutableBooleanCollection select(BooleanPredicate predicate)
- Specified by:
select
in interfaceBooleanIterable
- Specified by:
select
in interfaceMutableObjectBooleanMap<K>
-
reject
public MutableBooleanCollection reject(BooleanPredicate predicate)
- Specified by:
reject
in interfaceBooleanIterable
- Specified by:
reject
in interfaceMutableObjectBooleanMap<K>
-
detectIfNone
public boolean detectIfNone(BooleanPredicate predicate, boolean ifNone)
- Specified by:
detectIfNone
in interfaceBooleanIterable
-
collect
public <V1> MutableCollection<V1> collect(BooleanToObjectFunction<? extends V1> function)
- Specified by:
collect
in interfaceBooleanIterable
- Specified by:
collect
in interfaceMutableObjectBooleanMap<K>
-
toArray
public boolean[] toArray()
- Specified by:
toArray
in interfaceBooleanIterable
-
toArray
public boolean[] toArray(boolean[] target)
- Specified by:
toArray
in interfaceBooleanIterable
-
contains
public boolean contains(boolean value)
- Specified by:
contains
in interfaceBooleanIterable
-
containsAll
public boolean containsAll(boolean... source)
- Specified by:
containsAll
in interfaceBooleanIterable
-
containsAll
public boolean containsAll(BooleanIterable source)
- Specified by:
containsAll
in interfaceBooleanIterable
-
toList
public MutableBooleanList toList()
- Specified by:
toList
in interfaceBooleanIterable
-
toSet
public MutableBooleanSet toSet()
- Specified by:
toSet
in interfaceBooleanIterable
-
toBag
public MutableBooleanBag toBag()
- Specified by:
toBag
in interfaceBooleanIterable
-
asLazy
public LazyBooleanIterable asLazy()
- Specified by:
asLazy
in interfaceBooleanIterable
-
withKeyValue
public MutableObjectBooleanMap<K> withKeyValue(K key, boolean value)
- Specified by:
withKeyValue
in interfaceMutableObjectBooleanMap<K>
-
withoutKey
public MutableObjectBooleanMap<K> withoutKey(K key)
- Specified by:
withoutKey
in interfaceMutableObjectBooleanMap<K>
-
withoutAllKeys
public MutableObjectBooleanMap<K> withoutAllKeys(Iterable<? extends K> keys)
- Specified by:
withoutAllKeys
in interfaceMutableObjectBooleanMap<K>
-
asUnmodifiable
public MutableObjectBooleanMap<K> asUnmodifiable()
- Specified by:
asUnmodifiable
in interfaceMutableObjectBooleanMap<K>
-
asSynchronized
public MutableObjectBooleanMap<K> asSynchronized()
- Specified by:
asSynchronized
in interfaceMutableObjectBooleanMap<K>
-
toImmutable
public ImmutableObjectBooleanMap<K> toImmutable()
- Specified by:
toImmutable
in interfaceObjectBooleanMap<K>
-
size
public int size()
- Specified by:
size
in interfacePrimitiveIterable
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfacePrimitiveIterable
-
notEmpty
public boolean notEmpty()
- Specified by:
notEmpty
in interfacePrimitiveIterable
-
keySet
public Set<K> keySet()
- Specified by:
keySet
in interfaceObjectBooleanMap<K>
-
values
public MutableBooleanCollection values()
- Specified by:
values
in interfaceObjectBooleanMap<K>
-
keysView
public LazyIterable<K> keysView()
- Specified by:
keysView
in interfaceObjectBooleanMap<K>
-
keyValuesView
public RichIterable<ObjectBooleanPair<K>> keyValuesView()
- Specified by:
keyValuesView
in interfaceObjectBooleanMap<K>
-
toString
public String toString()
- Specified by:
toString
in interfaceObjectBooleanMap<K>
- Specified by:
toString
in interfacePrimitiveIterable
- Overrides:
toString
in classObject
-
makeString
public String makeString()
- Specified by:
makeString
in interfacePrimitiveIterable
-
makeString
public String makeString(String separator)
- Specified by:
makeString
in interfacePrimitiveIterable
-
makeString
public String makeString(String start, String separator, String end)
- Specified by:
makeString
in interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable)
- Specified by:
appendString
in interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable, String separator)
- Specified by:
appendString
in interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable, String start, String separator, String end)
- Specified by:
appendString
in interfacePrimitiveIterable
-
injectInto
public <T> T injectInto(T injectedValue, ObjectBooleanToObjectFunction<? super T,? extends T> function)
- Specified by:
injectInto
in interfaceBooleanIterable
-
chunk
public RichIterable<BooleanIterable> chunk(int size)
- Specified by:
chunk
in interfaceBooleanIterable
-
-