Class BoxedMutableBooleanSet
- java.lang.Object
-
- org.eclipse.collections.impl.AbstractRichIterable<T>
-
- org.eclipse.collections.impl.collection.mutable.AbstractMutableCollection<T>
-
- org.eclipse.collections.impl.set.mutable.AbstractMutableSet<java.lang.Boolean>
-
- org.eclipse.collections.impl.set.mutable.primitive.BoxedMutableBooleanSet
-
- All Implemented Interfaces:
java.lang.Cloneable,java.lang.Iterable<java.lang.Boolean>,java.util.Collection<java.lang.Boolean>,java.util.Set<java.lang.Boolean>,MutableCollection<java.lang.Boolean>,InternalIterable<java.lang.Boolean>,RichIterable<java.lang.Boolean>,MutableSet<java.lang.Boolean>,MutableSetIterable<java.lang.Boolean>,SetIterable<java.lang.Boolean>,UnsortedSetIterable<java.lang.Boolean>
public class BoxedMutableBooleanSet extends AbstractMutableSet<java.lang.Boolean> implements MutableSet<java.lang.Boolean>
A boxed view of aMutableBooleanSet. This is for scenarios where optimization is not a consideration and therefore no further methods will be optimized.This file was automatically generated from template file boxedPrimitiveSet.stg.
- Since:
- 12.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classBoxedMutableBooleanSet.BoxedPrimitiveBooleanSetIterator
-
Field Summary
Fields Modifier and Type Field Description private MutableBooleanSetdelegate
-
Constructor Summary
Constructors Constructor Description BoxedMutableBooleanSet(MutableBooleanSet delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(java.lang.Boolean item)ParallelUnsortedSetIterable<java.lang.Boolean>asParallel(java.util.concurrent.ExecutorService executorService, int batchSize)Returns a parallel iterable of this SetIterable.voidclear()booleancontains(java.lang.Object object)Returns true if the iterable has an element which responds true to element.equals(object).voideach(Procedure<? super java.lang.Boolean> procedure)The procedure is executed for each element in the iterable.booleanequals(java.lang.Object object)Follows the same general contract asSet.equals(Object).java.lang.BooleangetFirst()Returns the first element of an iterable.java.lang.BooleangetLast()Returns the last element of an iterable.inthashCode()Follows the same general contract asSet.hashCode().java.util.Iterator<java.lang.Boolean>iterator()booleanremove(java.lang.Object object)intsize()Returns the number of items in this iterable.-
Methods inherited from class org.eclipse.collections.impl.set.mutable.AbstractMutableSet
asSynchronized, asUnmodifiable, cartesianProduct, clone, collect, collectIf, collectWith, difference, differenceInto, flatCollect, groupBy, groupByEach, intersect, intersectInto, isProperSubsetOf, isSubsetOf, newEmpty, newEmptySameSize, partition, partitionWith, powerSet, reject, rejectWith, removeAllIterable, select, selectInstancesOf, selectWith, symmetricDifference, symmetricDifferenceInto, tap, toImmutable, union, unionInto, zip, zipWithIndex
-
Methods inherited from class org.eclipse.collections.impl.collection.mutable.AbstractMutableCollection
addAll, addAllIterable, chunk, countBy, countByEach, countByWith, groupByUniqueKey, injectIntoWith, reduce, removeAll, removeIf, removeIfWith, retainAll, retainAllIterable, selectAndRejectWith, sumByDouble, sumByFloat, sumByInt, sumByLong
-
Methods inherited from class org.eclipse.collections.impl.AbstractRichIterable
allSatisfy, allSatisfyWith, anySatisfy, anySatisfyWith, appendString, appendString, asLazy, collect, collectIf, collectWith, containsAll, containsAllArguments, containsAllIterable, count, countWith, detect, detectOptional, detectWith, detectWithIfNone, detectWithOptional, flatCollect, forEach, forEachWith, forEachWithIndex, groupBy, groupByEach, groupByUniqueKey, injectInto, injectInto, injectInto, injectInto, injectInto, into, isEmpty, max, max, maxBy, min, min, minBy, noneSatisfy, noneSatisfyWith, reject, rejectWith, select, selectWith, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, toBag, toBiMap, toList, toMap, toSet, toSortedBag, toSortedBag, toSortedBagBy, toSortedListBy, toSortedMap, toSortedMap, toSortedMapBy, toSortedSet, toSortedSet, toSortedSetBy, toString, zip, zipWithIndex
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.collections.api.InternalIterable
forEach, forEachWith, forEachWithIndex
-
Methods inherited from interface org.eclipse.collections.api.collection.MutableCollection
addAllIterable, aggregateBy, aggregateInPlaceBy, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, countBy, countByEach, countByWith, flatCollectWith, groupByUniqueKey, injectIntoWith, removeAllIterable, removeIf, removeIfWith, retainAllIterable, selectAndRejectWith, sumByDouble, sumByFloat, sumByInt, sumByLong, toArray, toArray
-
Methods inherited from interface org.eclipse.collections.api.set.MutableSet
asSynchronized, asUnmodifiable, clone, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, difference, flatCollect, flatCollectWith, groupBy, groupByEach, intersect, newEmpty, partition, partitionWith, powerSet, reject, rejectWith, select, selectInstancesOf, selectWith, symmetricDifference, tap, toImmutable, toImmutableSet, union, with, withAll, without, withoutAll, zip, zipWithIndex
-
Methods inherited from interface org.eclipse.collections.api.set.MutableSetIterable
toArray, toArray
-
Methods inherited from interface org.eclipse.collections.api.RichIterable
aggregateBy, allSatisfy, allSatisfyWith, anySatisfy, anySatisfyWith, appendString, appendString, appendString, asLazy, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, containsAll, containsAllArguments, containsAllIterable, containsAny, containsAnyIterable, containsBy, containsNone, containsNoneIterable, count, countBy, countByEach, countByWith, countWith, detect, detectIfNone, detectOptional, detectWith, detectWithIfNone, detectWithOptional, flatCollect, flatCollectBoolean, flatCollectByte, flatCollectChar, flatCollectDouble, flatCollectFloat, flatCollectInt, flatCollectLong, flatCollectShort, flatCollectWith, forEach, getAny, getOnly, groupBy, groupByAndCollect, groupByEach, groupByUniqueKey, injectInto, injectInto, injectInto, injectInto, injectInto, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, into, isEmpty, makeString, makeString, makeString, makeString, max, max, maxBy, maxByOptional, maxOptional, maxOptional, min, min, minBy, minByOptional, minOptional, minOptional, noneSatisfy, noneSatisfyWith, notEmpty, reduce, reduceBy, reduceBy, reduceInPlace, reduceInPlace, reject, rejectWith, select, selectWith, summarizeDouble, summarizeFloat, summarizeInt, summarizeLong, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, toBag, toBiMap, toImmutableBag, toImmutableBiMap, toImmutableList, toImmutableMap, toImmutableSortedBag, toImmutableSortedBag, toImmutableSortedBagBy, toImmutableSortedList, toImmutableSortedList, toImmutableSortedListBy, toImmutableSortedSet, toImmutableSortedSet, toImmutableSortedSetBy, toList, toMap, toMap, toSet, toSortedBag, toSortedBag, toSortedBagBy, toSortedList, toSortedList, toSortedListBy, toSortedMap, toSortedMap, toSortedMapBy, toSortedSet, toSortedSet, toSortedSetBy, toString, zip, zipWithIndex
-
Methods inherited from interface java.util.Set
addAll, containsAll, isEmpty, removeAll, retainAll, spliterator
-
Methods inherited from interface org.eclipse.collections.api.set.SetIterable
cartesianProduct, differenceInto, intersectInto, isProperSubsetOf, isSubsetOf, symmetricDifferenceInto, unionInto
-
-
-
-
Field Detail
-
delegate
private final MutableBooleanSet delegate
-
-
Constructor Detail
-
BoxedMutableBooleanSet
public BoxedMutableBooleanSet(MutableBooleanSet delegate)
-
-
Method Detail
-
size
public int size()
Description copied from interface:RichIterableReturns the number of items in this iterable.- Specified by:
sizein interfacejava.util.Collection<java.lang.Boolean>- Specified by:
sizein interfaceRichIterable<java.lang.Boolean>- Specified by:
sizein interfacejava.util.Set<java.lang.Boolean>
-
getFirst
public java.lang.Boolean getFirst()
Description copied from interface:RichIterableReturns the first element of an iterable. In the case of a List it is the element at the first index. In the case of any other Collection, it is the first element that would be returned during an iteration. If the iterable is empty, null is returned. If null is a valid element of the container, then a developer would need to check to see if the iterable is empty to validate that a null result was not due to the container being empty.The order of Sets are not guaranteed (except for TreeSets and other Ordered Set implementations), so if you use this method, the first element could be any element from the Set.
- Specified by:
getFirstin interfaceRichIterable<java.lang.Boolean>
-
getLast
public java.lang.Boolean getLast()
Description copied from interface:RichIterableReturns the last element of an iterable. In the case of a List it is the element at the last index. In the case of any other Collection, it is the last element that would be returned during an iteration. If the iterable is empty, null is returned. If null is a valid element of the container, then a developer would need to check to see if the iterable is empty to validate that a null result was not due to the container being empty.The order of Sets are not guaranteed (except for TreeSets and other Ordered Set implementations), so if you use this method, the last element could be any element from the Set.
- Specified by:
getLastin interfaceRichIterable<java.lang.Boolean>
-
each
public void each(Procedure<? super java.lang.Boolean> procedure)
Description copied from interface:RichIterableThe procedure is executed for each element in the iterable.Example using a Java 8 lambda expression:
people.each(person -> LOGGER.info(person.getName()));
This method is a variant ofInternalIterable.forEach(Procedure)that has a signature conflict withIterable.forEach(java.util.function.Consumer).- Specified by:
eachin interfaceRichIterable<java.lang.Boolean>- See Also:
InternalIterable.forEach(Procedure),Iterable.forEach(java.util.function.Consumer)
-
add
public boolean add(java.lang.Boolean item)
- Specified by:
addin interfacejava.util.Collection<java.lang.Boolean>- Specified by:
addin interfacejava.util.Set<java.lang.Boolean>- Overrides:
addin classAbstractMutableCollection<java.lang.Boolean>
-
contains
public boolean contains(java.lang.Object object)
Description copied from interface:RichIterableReturns true if the iterable has an element which responds true to element.equals(object).- Specified by:
containsin interfacejava.util.Collection<java.lang.Boolean>- Specified by:
containsin interfaceRichIterable<java.lang.Boolean>- Specified by:
containsin interfacejava.util.Set<java.lang.Boolean>- Overrides:
containsin classAbstractRichIterable<java.lang.Boolean>
-
remove
public boolean remove(java.lang.Object object)
- Specified by:
removein interfacejava.util.Collection<java.lang.Boolean>- Specified by:
removein interfacejava.util.Set<java.lang.Boolean>- Overrides:
removein classAbstractMutableCollection<java.lang.Boolean>
-
clear
public void clear()
- Specified by:
clearin interfacejava.util.Collection<java.lang.Boolean>- Specified by:
clearin interfacejava.util.Set<java.lang.Boolean>
-
asParallel
public ParallelUnsortedSetIterable<java.lang.Boolean> asParallel(java.util.concurrent.ExecutorService executorService, int batchSize)
Description copied from interface:SetIterableReturns a parallel iterable of this SetIterable.- Specified by:
asParallelin interfaceSetIterable<java.lang.Boolean>- Specified by:
asParallelin interfaceUnsortedSetIterable<java.lang.Boolean>
-
hashCode
public int hashCode()
Description copied from interface:SetIterableFollows the same general contract asSet.hashCode().- Specified by:
hashCodein interfacejava.util.Collection<java.lang.Boolean>- Specified by:
hashCodein interfacejava.util.Set<java.lang.Boolean>- Specified by:
hashCodein interfaceSetIterable<java.lang.Boolean>- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object object)
Description copied from interface:SetIterableFollows the same general contract asSet.equals(Object).- Specified by:
equalsin interfacejava.util.Collection<java.lang.Boolean>- Specified by:
equalsin interfacejava.util.Set<java.lang.Boolean>- Specified by:
equalsin interfaceSetIterable<java.lang.Boolean>- Overrides:
equalsin classjava.lang.Object
-
iterator
public java.util.Iterator<java.lang.Boolean> iterator()
- Specified by:
iteratorin interfacejava.util.Collection<java.lang.Boolean>- Specified by:
iteratorin interfacejava.lang.Iterable<java.lang.Boolean>- Specified by:
iteratorin interfacejava.util.Set<java.lang.Boolean>
-
-