Interface MutableBooleanCollection
- All Superinterfaces:
BooleanIterable,PrimitiveIterable
- All Known Subinterfaces:
MutableBooleanBag,MutableBooleanList,MutableBooleanSet
This file was automatically generated from template file mutablePrimitiveCollection.stg.
- Since:
- 3.0.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanadd(boolean element) booleanaddAll(boolean... source) booleanaddAll(BooleanIterable source) Returns a primitive iterator that can be used to iterate over the BooleanIterable in an imperative style.voidclear()<V> MutableCollection<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.default MutableBooleanCollectionnewEmpty()Creates a new empty mutable version of the same collection type.reject(BooleanPredicate predicate) Returns a new BooleanIterable with all of the elements in the BooleanIterable that return false for the specified predicate.booleanremove(boolean value) booleanremoveAll(boolean... source) booleanremoveAll(BooleanIterable source) default booleanremoveIf(BooleanPredicate predicate) booleanretainAll(boolean... source) booleanretainAll(BooleanIterable elements) select(BooleanPredicate predicate) Returns a new BooleanIterable with all of the elements in the BooleanIterable that return true for the specified predicate.default MutableBooleanCollectiontap(BooleanProcedure procedure) with(boolean element) withAll(BooleanIterable elements) without(boolean element) withoutAll(BooleanIterable elements) 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, toSetMethods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
-
Method Details
-
booleanIterator
MutableBooleanIterator booleanIterator()Description copied from interface:BooleanIterableReturns a primitive iterator that can be used to iterate over the BooleanIterable in an imperative style.- Specified by:
booleanIteratorin interfaceBooleanIterable
-
add
boolean add(boolean element) -
addAll
boolean addAll(boolean... source) -
addAll
-
remove
boolean remove(boolean value) -
removeAll
-
removeAll
boolean removeAll(boolean... source) -
removeIf
- Since:
- 9.1
-
retainAll
- Since:
- 5.0
- See Also:
-
retainAll
boolean retainAll(boolean... source) - Since:
- 5.0
- See Also:
-
clear
void clear() -
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
-
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
-
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
-
with
-
without
-
withAll
-
withoutAll
-
asUnmodifiable
MutableBooleanCollection asUnmodifiable() -
asSynchronized
MutableBooleanCollection asSynchronized() -
toImmutable
ImmutableBooleanCollection toImmutable() -
tap
- Specified by:
tapin interfaceBooleanIterable- Since:
- 9.0.
-
newEmpty
Creates a new empty mutable version of the same collection type.- Since:
- 9.2.
-