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
Modifier and Type Method Description MutableBooleanSetasSynchronized()MutableBooleanSetasUnmodifiable()<V> MutableSet<V>collect(BooleanToObjectFunction<? extends V> function)Returns a new collection with the results of applying the specified function on each element of the source collection.booleanequals(Object otherSet)Follows the same general contract asSet.equals(Object).BooleanSetfreeze()Returns a frozen copy of this set.inthashCode()Follows the same general contract asSet.hashCode().MutableBooleanSetnewEmpty()Creates a new empty mutable version of the same Set type.static UnmodifiableBooleanSetof(MutableBooleanSet set)This method will take a MutableBooleanSet and wrap it directly in a UnmodifiableBooleanSet.MutableBooleanSetreject(BooleanPredicate predicate)Returns a new BooleanIterable with all of the elements in the BooleanIterable that return false for the specified predicate.MutableBooleanSetselect(BooleanPredicate predicate)Returns a new BooleanIterable with all of the elements in the BooleanIterable that return true for the specified predicate.ImmutableBooleanSettoImmutable()Returns an immutable copy of this set.UnmodifiableBooleanSetwith(boolean element)UnmodifiableBooleanSetwithAll(BooleanIterable elements)UnmodifiableBooleanSetwithout(boolean element)UnmodifiableBooleanSetwithoutAll(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, count, detectIfNone, each, forEach, injectInto, isEmpty, makeString, makeString, makeString, noneSatisfy, notEmpty, reduce, reduceIfEmpty, remove, removeAll, removeAll, removeIf, retainAll, retainAll, size, toArray, toArray, toBag, toList, toSet, toStringMethods inherited from interface org.eclipse.collections.api.BooleanIterable
allSatisfy, anySatisfy, asLazy, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, forEach, injectInto, noneSatisfy, reduce, reduceIfEmpty, reject, select, toArray, toArray, toBag, toList, toSetMethods inherited from interface org.eclipse.collections.api.collection.primitive.MutableBooleanCollection
add, addAll, addAll, booleanIterator, clear, remove, removeAll, removeAll, removeIf, retainAll, retainAllMethods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
-
Constructor Details
-
Method Details
-
of
This method will take a MutableBooleanSet and wrap it directly in a UnmodifiableBooleanSet. -
with
- Specified by:
within interfaceMutableBooleanCollection- Specified by:
within interfaceMutableBooleanSet- Overrides:
within classAbstractUnmodifiableBooleanCollection
-
without
- Specified by:
withoutin interfaceMutableBooleanCollection- Specified by:
withoutin interfaceMutableBooleanSet- Overrides:
withoutin classAbstractUnmodifiableBooleanCollection
-
withAll
- Specified by:
withAllin interfaceMutableBooleanCollection- Specified by:
withAllin interfaceMutableBooleanSet- Overrides:
withAllin classAbstractUnmodifiableBooleanCollection
-
withoutAll
- Specified by:
withoutAllin interfaceMutableBooleanCollection- Specified by:
withoutAllin interfaceMutableBooleanSet- Overrides:
withoutAllin classAbstractUnmodifiableBooleanCollection
-
select
Description copied from interface:BooleanIterableReturns a new BooleanIterable with all of the elements in the BooleanIterable that return true for the specified predicate.- Specified by:
selectin interfaceBooleanIterable- Specified by:
selectin interfaceBooleanSet- Specified by:
selectin interfaceMutableBooleanCollection- Specified by:
selectin interfaceMutableBooleanSet- Overrides:
selectin classAbstractUnmodifiableBooleanCollection
-
reject
Description copied from interface:BooleanIterableReturns a new BooleanIterable with all of the elements in the BooleanIterable that return false for the specified predicate.- Specified by:
rejectin interfaceBooleanIterable- Specified by:
rejectin interfaceBooleanSet- Specified by:
rejectin interfaceMutableBooleanCollection- Specified by:
rejectin interfaceMutableBooleanSet- Overrides:
rejectin classAbstractUnmodifiableBooleanCollection
-
collect
Description copied from interface:BooleanIterableReturns a new collection with the results of applying the specified function on each element of the source collection. This method is also commonly called transform or map.- Specified by:
collectin interfaceBooleanIterable- Specified by:
collectin interfaceBooleanSet- Specified by:
collectin interfaceMutableBooleanCollection- Specified by:
collectin interfaceMutableBooleanSet- Overrides:
collectin classAbstractUnmodifiableBooleanCollection
-
equals
Description copied from interface:BooleanSetFollows the same general contract asSet.equals(Object).- Specified by:
equalsin interfaceBooleanSet- Overrides:
equalsin classObject
-
hashCode
public int hashCode()Description copied from interface:BooleanSetFollows the same general contract asSet.hashCode().- Specified by:
hashCodein interfaceBooleanSet- Overrides:
hashCodein classObject
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableBooleanCollection- Specified by:
asUnmodifiablein interfaceMutableBooleanSet- Overrides:
asUnmodifiablein classAbstractUnmodifiableBooleanCollection
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableBooleanCollection- Specified by:
asSynchronizedin interfaceMutableBooleanSet- Overrides:
asSynchronizedin classAbstractUnmodifiableBooleanCollection
-
freeze
Description copied from interface:MutableBooleanSetReturns a frozen copy of this set. A frozen copy is the same thing as an immutable copy without safe-publish guarantees.- Specified by:
freezein interfaceBooleanSet- Specified by:
freezein interfaceMutableBooleanSet
-
toImmutable
Description copied from interface:MutableBooleanSetReturns an immutable copy of this set.- Specified by:
toImmutablein interfaceBooleanSet- Specified by:
toImmutablein interfaceMutableBooleanCollection- Specified by:
toImmutablein interfaceMutableBooleanSet- Overrides:
toImmutablein classAbstractUnmodifiableBooleanCollection
-
newEmpty
Description copied from interface:MutableBooleanSetCreates a new empty mutable version of the same Set type.- Specified by:
newEmptyin interfaceMutableBooleanCollection- Specified by:
newEmptyin interfaceMutableBooleanSet- Since:
- 9.2.
-