Class UnmodifiableLongBooleanMap
- java.lang.Object
-
- org.eclipse.collections.impl.map.mutable.primitive.UnmodifiableLongBooleanMap
-
- All Implemented Interfaces:
Serializable
,BooleanIterable
,BooleanValuesMap
,LongBooleanMap
,MutableBooleanValuesMap
,MutableLongBooleanMap
,PrimitiveIterable
public class UnmodifiableLongBooleanMap extends Object implements MutableLongBooleanMap, Serializable
This file was automatically generated from template file unmodifiablePrimitivePrimitiveMap.stg.- Since:
- 3.1.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnmodifiableLongBooleanMap(MutableLongBooleanMap 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.BooleanValuesMap
tap
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.LongBooleanMap
injectIntoKeyValue
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableLongBooleanMap
withAllKeyValues
-
-
-
-
Constructor Detail
-
UnmodifiableLongBooleanMap
public UnmodifiableLongBooleanMap(MutableLongBooleanMap map)
-
-
Method Detail
-
clear
public void clear()
- Specified by:
clear
in interfaceMutableBooleanValuesMap
-
put
public void put(long key, boolean value)
- Specified by:
put
in interfaceMutableLongBooleanMap
-
putPair
public void putPair(LongBooleanPair keyValuePair)
- Specified by:
putPair
in interfaceMutableLongBooleanMap
-
putAll
public void putAll(LongBooleanMap map)
- Specified by:
putAll
in interfaceMutableLongBooleanMap
-
updateValues
public void updateValues(LongBooleanToBooleanFunction function)
- Specified by:
updateValues
in interfaceMutableLongBooleanMap
-
removeKey
public void removeKey(long key)
- Specified by:
removeKey
in interfaceMutableLongBooleanMap
-
remove
public void remove(long key)
- Specified by:
remove
in interfaceMutableLongBooleanMap
-
removeKeyIfAbsent
public boolean removeKeyIfAbsent(long key, boolean value)
- Specified by:
removeKeyIfAbsent
in interfaceMutableLongBooleanMap
-
getIfAbsentPut
public boolean getIfAbsentPut(long key, boolean value)
- Specified by:
getIfAbsentPut
in interfaceMutableLongBooleanMap
-
getAndPut
public boolean getAndPut(long key, boolean putValue, boolean defaultValue)
- Specified by:
getAndPut
in interfaceMutableLongBooleanMap
-
getIfAbsentPut
public boolean getIfAbsentPut(long key, BooleanFunction0 function)
- Specified by:
getIfAbsentPut
in interfaceMutableLongBooleanMap
-
getIfAbsentPutWithKey
public boolean getIfAbsentPutWithKey(long key, LongToBooleanFunction function)
- Specified by:
getIfAbsentPutWithKey
in interfaceMutableLongBooleanMap
-
getIfAbsentPutWith
public <P> boolean getIfAbsentPutWith(long key, BooleanFunction<? super P> function, P parameter)
- Specified by:
getIfAbsentPutWith
in interfaceMutableLongBooleanMap
-
updateValue
public boolean updateValue(long key, boolean initialValueIfAbsent, BooleanToBooleanFunction function)
- Specified by:
updateValue
in interfaceMutableLongBooleanMap
-
get
public boolean get(long key)
- Specified by:
get
in interfaceLongBooleanMap
-
getIfAbsent
public boolean getIfAbsent(long key, boolean ifAbsent)
- Specified by:
getIfAbsent
in interfaceLongBooleanMap
-
getOrThrow
public boolean getOrThrow(long key)
- Specified by:
getOrThrow
in interfaceLongBooleanMap
-
containsKey
public boolean containsKey(long key)
- Specified by:
containsKey
in interfaceLongBooleanMap
-
containsValue
public boolean containsValue(boolean value)
- Specified by:
containsValue
in interfaceBooleanValuesMap
-
forEachValue
public void forEachValue(BooleanProcedure procedure)
- Specified by:
forEachValue
in interfaceBooleanValuesMap
-
forEachKey
public void forEachKey(LongProcedure procedure)
- Specified by:
forEachKey
in interfaceLongBooleanMap
-
forEachKeyValue
public void forEachKeyValue(LongBooleanProcedure procedure)
- Specified by:
forEachKeyValue
in interfaceLongBooleanMap
-
keysView
public LazyLongIterable keysView()
- Specified by:
keysView
in interfaceLongBooleanMap
-
keyValuesView
public RichIterable<LongBooleanPair> keyValuesView()
- Specified by:
keyValuesView
in interfaceLongBooleanMap
-
select
public MutableLongBooleanMap select(LongBooleanPredicate predicate)
- Specified by:
select
in interfaceLongBooleanMap
- Specified by:
select
in interfaceMutableLongBooleanMap
-
reject
public MutableLongBooleanMap reject(LongBooleanPredicate predicate)
- Specified by:
reject
in interfaceLongBooleanMap
- Specified by:
reject
in interfaceMutableLongBooleanMap
-
booleanIterator
public MutableBooleanIterator booleanIterator()
- Specified by:
booleanIterator
in interfaceBooleanIterable
- Specified by:
booleanIterator
in interfaceMutableBooleanValuesMap
-
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 MutableBooleanBag select(BooleanPredicate predicate)
- Specified by:
select
in interfaceBooleanIterable
- Specified by:
select
in interfaceBooleanValuesMap
- Specified by:
select
in interfaceMutableBooleanValuesMap
-
reject
public MutableBooleanBag reject(BooleanPredicate predicate)
- Specified by:
reject
in interfaceBooleanIterable
- Specified by:
reject
in interfaceBooleanValuesMap
- Specified by:
reject
in interfaceMutableBooleanValuesMap
-
collect
public <V> MutableBag<V> collect(BooleanToObjectFunction<? extends V> function)
- Specified by:
collect
in interfaceBooleanIterable
- Specified by:
collect
in interfaceBooleanValuesMap
- Specified by:
collect
in interfaceMutableBooleanValuesMap
-
detectIfNone
public boolean detectIfNone(BooleanPredicate predicate, boolean ifNone)
- Specified by:
detectIfNone
in interfaceBooleanIterable
-
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 MutableLongBooleanMap withKeyValue(long key, boolean value)
- Specified by:
withKeyValue
in interfaceMutableLongBooleanMap
-
withoutKey
public MutableLongBooleanMap withoutKey(long key)
- Specified by:
withoutKey
in interfaceMutableLongBooleanMap
-
withoutAllKeys
public MutableLongBooleanMap withoutAllKeys(LongIterable keys)
- Specified by:
withoutAllKeys
in interfaceMutableLongBooleanMap
-
asUnmodifiable
public MutableLongBooleanMap asUnmodifiable()
- Specified by:
asUnmodifiable
in interfaceMutableLongBooleanMap
-
asSynchronized
public MutableLongBooleanMap asSynchronized()
- Specified by:
asSynchronized
in interfaceMutableLongBooleanMap
-
toImmutable
public ImmutableLongBooleanMap toImmutable()
- Specified by:
toImmutable
in interfaceLongBooleanMap
-
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 MutableLongSet keySet()
- Specified by:
keySet
in interfaceLongBooleanMap
-
values
public MutableBooleanCollection values()
- Specified by:
values
in interfaceBooleanValuesMap
-
equals
public boolean equals(Object otherMap)
- Specified by:
equals
in interfaceLongBooleanMap
- Overrides:
equals
in classObject
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfaceLongBooleanMap
- Overrides:
hashCode
in classObject
-
toString
public String toString()
- Specified by:
toString
in interfaceLongBooleanMap
- 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
-
-