Class UnmodifiableBooleanSet
- java.lang.Object
-
- org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableBooleanCollection
-
- org.eclipse.collections.impl.set.mutable.primitive.UnmodifiableBooleanSet
-
- All Implemented Interfaces:
Serializable
,BooleanIterable
,MutableBooleanCollection
,PrimitiveIterable
,BooleanSet
,MutableBooleanSet
public class UnmodifiableBooleanSet extends AbstractUnmodifiableBooleanCollection implements MutableBooleanSet
This file was automatically generated from template file unmodifiablePrimitiveSet.stg.- Since:
- 3.1.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnmodifiableBooleanSet(MutableBooleanSet set)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MutableBooleanSet
asSynchronized()
MutableBooleanSet
asUnmodifiable()
MutableSet<Boolean>
boxed()
LazyIterable<BooleanBooleanPair>
cartesianProduct(BooleanSet set)
<V> MutableSet<V>
collect(BooleanToObjectFunction<? extends V> function)
boolean
equals(Object otherSet)
BooleanSet
freeze()
int
hashCode()
MutableBooleanSet
newEmpty()
static UnmodifiableBooleanSet
of(MutableBooleanSet set)
This method will take a MutableBooleanSet and wrap it directly in a UnmodifiableBooleanSet.MutableBooleanSet
reject(BooleanPredicate predicate)
MutableBooleanSet
select(BooleanPredicate predicate)
ImmutableBooleanSet
toImmutable()
UnmodifiableBooleanSet
with(boolean element)
UnmodifiableBooleanSet
withAll(BooleanIterable elements)
UnmodifiableBooleanSet
without(boolean element)
UnmodifiableBooleanSet
withoutAll(BooleanIterable elements)
-
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.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.set.primitive.BooleanSet
isProperSubsetOf, isSubsetOf
-
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.set.primitive.MutableBooleanSet
difference, intersect, symmetricDifference, tap, union
-
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
-
-
-
-
Constructor Detail
-
UnmodifiableBooleanSet
public UnmodifiableBooleanSet(MutableBooleanSet set)
-
-
Method Detail
-
of
public static UnmodifiableBooleanSet of(MutableBooleanSet set)
This method will take a MutableBooleanSet and wrap it directly in a UnmodifiableBooleanSet.
-
with
public UnmodifiableBooleanSet with(boolean element)
- Specified by:
with
in interfaceMutableBooleanCollection
- Specified by:
with
in interfaceMutableBooleanSet
- Overrides:
with
in classAbstractUnmodifiableBooleanCollection
-
boxed
public MutableSet<Boolean> boxed()
- Specified by:
boxed
in interfaceMutableBooleanSet
-
without
public UnmodifiableBooleanSet without(boolean element)
- Specified by:
without
in interfaceMutableBooleanCollection
- Specified by:
without
in interfaceMutableBooleanSet
- Overrides:
without
in classAbstractUnmodifiableBooleanCollection
-
withAll
public UnmodifiableBooleanSet withAll(BooleanIterable elements)
- Specified by:
withAll
in interfaceMutableBooleanCollection
- Specified by:
withAll
in interfaceMutableBooleanSet
- Overrides:
withAll
in classAbstractUnmodifiableBooleanCollection
-
withoutAll
public UnmodifiableBooleanSet withoutAll(BooleanIterable elements)
- Specified by:
withoutAll
in interfaceMutableBooleanCollection
- Specified by:
withoutAll
in interfaceMutableBooleanSet
- Overrides:
withoutAll
in classAbstractUnmodifiableBooleanCollection
-
select
public MutableBooleanSet select(BooleanPredicate predicate)
- Specified by:
select
in interfaceBooleanIterable
- Specified by:
select
in interfaceBooleanSet
- Specified by:
select
in interfaceMutableBooleanCollection
- Specified by:
select
in interfaceMutableBooleanSet
- Overrides:
select
in classAbstractUnmodifiableBooleanCollection
-
reject
public MutableBooleanSet reject(BooleanPredicate predicate)
- Specified by:
reject
in interfaceBooleanIterable
- Specified by:
reject
in interfaceBooleanSet
- Specified by:
reject
in interfaceMutableBooleanCollection
- Specified by:
reject
in interfaceMutableBooleanSet
- Overrides:
reject
in classAbstractUnmodifiableBooleanCollection
-
collect
public <V> MutableSet<V> collect(BooleanToObjectFunction<? extends V> function)
- Specified by:
collect
in interfaceBooleanIterable
- Specified by:
collect
in interfaceBooleanSet
- Specified by:
collect
in interfaceMutableBooleanCollection
- Specified by:
collect
in interfaceMutableBooleanSet
- Overrides:
collect
in classAbstractUnmodifiableBooleanCollection
-
cartesianProduct
public LazyIterable<BooleanBooleanPair> cartesianProduct(BooleanSet set)
- Specified by:
cartesianProduct
in interfaceBooleanSet
-
equals
public boolean equals(Object otherSet)
- Specified by:
equals
in interfaceBooleanSet
- Overrides:
equals
in classObject
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfaceBooleanSet
- Overrides:
hashCode
in classObject
-
asUnmodifiable
public MutableBooleanSet asUnmodifiable()
- Specified by:
asUnmodifiable
in interfaceMutableBooleanCollection
- Specified by:
asUnmodifiable
in interfaceMutableBooleanSet
- Overrides:
asUnmodifiable
in classAbstractUnmodifiableBooleanCollection
-
asSynchronized
public MutableBooleanSet asSynchronized()
- Specified by:
asSynchronized
in interfaceMutableBooleanCollection
- Specified by:
asSynchronized
in interfaceMutableBooleanSet
- Overrides:
asSynchronized
in classAbstractUnmodifiableBooleanCollection
-
freeze
public BooleanSet freeze()
- Specified by:
freeze
in interfaceBooleanSet
- Specified by:
freeze
in interfaceMutableBooleanSet
-
toImmutable
public ImmutableBooleanSet toImmutable()
- Specified by:
toImmutable
in interfaceBooleanSet
- Specified by:
toImmutable
in interfaceMutableBooleanCollection
- Specified by:
toImmutable
in interfaceMutableBooleanSet
- Overrides:
toImmutable
in classAbstractUnmodifiableBooleanCollection
-
newEmpty
public MutableBooleanSet newEmpty()
- Specified by:
newEmpty
in interfaceMutableBooleanCollection
- Specified by:
newEmpty
in interfaceMutableBooleanSet
- Since:
- 9.2.
-
-