Class UnmodifiableBooleanBag
- java.lang.Object
-
- org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableBooleanCollection
-
- org.eclipse.collections.impl.bag.mutable.primitive.UnmodifiableBooleanBag
-
- All Implemented Interfaces:
Serializable,BooleanBag,MutableBooleanBag,BooleanIterable,MutableBooleanCollection,PrimitiveIterable
public class UnmodifiableBooleanBag extends AbstractUnmodifiableBooleanCollection implements MutableBooleanBag
This file was automatically generated from template file unmodifiablePrimitiveBag.stg.- Since:
- 3.1.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnmodifiableBooleanBag(MutableBooleanBag bag)
-
Method Summary
-
Methods inherited from class org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableBooleanCollection
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, asLazy, booleanIterator, chunk, clear, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, injectInto, isEmpty, makeString, makeString, makeString, noneSatisfy, notEmpty, reduce, reduceIfEmpty, remove, removeAll, removeAll, removeIf, retainAll, retainAll, size, toArray, toArray, toBag, toList, toSet, toString
-
Methods inherited from interface org.eclipse.collections.api.bag.primitive.BooleanBag
toStringOfItemToCount
-
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.bag.primitive.MutableBooleanBag
selectDuplicates, tap
-
Methods inherited from interface org.eclipse.collections.api.collection.primitive.MutableBooleanCollection
add, addAll, addAll, booleanIterator, clear, remove, removeAll, removeAll, removeIf, retainAll, retainAll
-
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
-
-
-
-
Constructor Detail
-
UnmodifiableBooleanBag
public UnmodifiableBooleanBag(MutableBooleanBag bag)
-
-
Method Detail
-
with
public UnmodifiableBooleanBag with(boolean element)
- Specified by:
within interfaceMutableBooleanBag- Specified by:
within interfaceMutableBooleanCollection- Overrides:
within classAbstractUnmodifiableBooleanCollection
-
without
public UnmodifiableBooleanBag without(boolean element)
- Specified by:
withoutin interfaceMutableBooleanBag- Specified by:
withoutin interfaceMutableBooleanCollection- Overrides:
withoutin classAbstractUnmodifiableBooleanCollection
-
withAll
public UnmodifiableBooleanBag withAll(BooleanIterable elements)
- Specified by:
withAllin interfaceMutableBooleanBag- Specified by:
withAllin interfaceMutableBooleanCollection- Overrides:
withAllin classAbstractUnmodifiableBooleanCollection
-
withoutAll
public UnmodifiableBooleanBag withoutAll(BooleanIterable elements)
- Specified by:
withoutAllin interfaceMutableBooleanBag- Specified by:
withoutAllin interfaceMutableBooleanCollection- Overrides:
withoutAllin classAbstractUnmodifiableBooleanCollection
-
addOccurrences
public void addOccurrences(boolean item, int occurrences)- Specified by:
addOccurrencesin interfaceMutableBooleanBag
-
removeOccurrences
public boolean removeOccurrences(boolean item, int occurrences)- Specified by:
removeOccurrencesin interfaceMutableBooleanBag
-
sizeDistinct
public int sizeDistinct()
- Specified by:
sizeDistinctin interfaceBooleanBag
-
occurrencesOf
public int occurrencesOf(boolean item)
- Specified by:
occurrencesOfin interfaceBooleanBag
-
forEachWithOccurrences
public void forEachWithOccurrences(BooleanIntProcedure procedure)
- Specified by:
forEachWithOccurrencesin interfaceBooleanBag
-
selectByOccurrences
public MutableBooleanBag selectByOccurrences(IntPredicate predicate)
- Specified by:
selectByOccurrencesin interfaceBooleanBag- Specified by:
selectByOccurrencesin interfaceMutableBooleanBag
-
selectUnique
public MutableBooleanSet selectUnique()
- Specified by:
selectUniquein interfaceBooleanBag- Specified by:
selectUniquein interfaceMutableBooleanBag
-
topOccurrences
public MutableList<BooleanIntPair> topOccurrences(int count)
- Specified by:
topOccurrencesin interfaceBooleanBag- Specified by:
topOccurrencesin interfaceMutableBooleanBag
-
bottomOccurrences
public MutableList<BooleanIntPair> bottomOccurrences(int count)
- Specified by:
bottomOccurrencesin interfaceBooleanBag- Specified by:
bottomOccurrencesin interfaceMutableBooleanBag
-
select
public MutableBooleanBag select(BooleanPredicate predicate)
- Specified by:
selectin interfaceBooleanBag- Specified by:
selectin interfaceBooleanIterable- Specified by:
selectin interfaceMutableBooleanBag- Specified by:
selectin interfaceMutableBooleanCollection- Overrides:
selectin classAbstractUnmodifiableBooleanCollection
-
reject
public MutableBooleanBag reject(BooleanPredicate predicate)
- Specified by:
rejectin interfaceBooleanBag- Specified by:
rejectin interfaceBooleanIterable- Specified by:
rejectin interfaceMutableBooleanBag- Specified by:
rejectin interfaceMutableBooleanCollection- Overrides:
rejectin classAbstractUnmodifiableBooleanCollection
-
collect
public <V> MutableBag<V> collect(BooleanToObjectFunction<? extends V> function)
- Specified by:
collectin interfaceBooleanBag- Specified by:
collectin interfaceBooleanIterable- Specified by:
collectin interfaceMutableBooleanBag- Specified by:
collectin interfaceMutableBooleanCollection- Overrides:
collectin classAbstractUnmodifiableBooleanCollection
-
equals
public boolean equals(Object otherBag)
- Specified by:
equalsin interfaceBooleanBag- Overrides:
equalsin classObject
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceBooleanBag- Overrides:
hashCodein classObject
-
asUnmodifiable
public MutableBooleanBag asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableBooleanBag- Specified by:
asUnmodifiablein interfaceMutableBooleanCollection- Overrides:
asUnmodifiablein classAbstractUnmodifiableBooleanCollection
-
asSynchronized
public MutableBooleanBag asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableBooleanBag- Specified by:
asSynchronizedin interfaceMutableBooleanCollection- Overrides:
asSynchronizedin classAbstractUnmodifiableBooleanCollection
-
toImmutable
public ImmutableBooleanBag toImmutable()
- Specified by:
toImmutablein interfaceBooleanBag- Specified by:
toImmutablein interfaceMutableBooleanBag- Specified by:
toImmutablein interfaceMutableBooleanCollection- Overrides:
toImmutablein classAbstractUnmodifiableBooleanCollection
-
newEmpty
public MutableBooleanBag newEmpty()
- Specified by:
newEmptyin interfaceMutableBooleanBag- Specified by:
newEmptyin interfaceMutableBooleanCollection- Since:
- 9.2.
-
-