Interface MutableBooleanList
- All Superinterfaces:
BooleanIterable,BooleanList,MutableBooleanCollection,OrderedBooleanIterable,PrimitiveIterable,ReversibleBooleanIterable
This file was automatically generated from template file mutablePrimitiveList.stg.
- Since:
- 3.0.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanaddAllAtIndex(int index, boolean... source) booleanaddAllAtIndex(int index, BooleanIterable source) voidaddAtIndex(int index, boolean element) boxed()<V> MutableList<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 <V> MutableList<V>collectWithIndex(BooleanIntToObjectFunction<? extends V> function) Returns a new MutableList using results obtained by applying the specified function to each element and its corresponding index.distinct()default MutableBooleanListnewEmpty()Creates a new empty mutable version of the same List type.reject(BooleanPredicate predicate) Returns a new BooleanIterable with all of the elements in the BooleanIterable that return false for the specified predicate.default MutableBooleanListrejectWithIndex(BooleanIntPredicate predicate) Returns a new MutableBooleanList excluding all elements with corresponding indexes matching the specified predicate.booleanremoveAtIndex(int index) select(BooleanPredicate predicate) Returns a new BooleanIterable with all of the elements in the BooleanIterable that return true for the specified predicate.default MutableBooleanListselectWithIndex(BooleanIntPredicate predicate) Returns a new MutableBooleanList including all elements with corresponding indexes matching the specified predicate.booleanset(int index, boolean element) subList(int fromIndex, int toIndex) default voidswap(int index1, int index2) default MutableBooleanListtap(BooleanProcedure procedure) Returns an immutable copy of this list.with(boolean element) withAll(BooleanIterable elements) without(boolean element) withoutAll(BooleanIterable elements) default <T> MutableList<BooleanObjectPair<T>>Returns aMutableListformed from thisMutableBooleanListand aListIterableby combining corresponding elements in pairs.default MutableList<BooleanBooleanPair>zipBoolean(BooleanIterable iterable) Returns aMutableListformed from thisMutableBooleanListand anotherBooleanListby combining corresponding elements in pairs.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.list.primitive.BooleanList
equals, forEachInBoth, get, hashCode, lastIndexOfMethods 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.ordered.primitive.OrderedBooleanIterable
collectWithIndex, forEachWithIndex, getFirst, indexOf, rejectWithIndex, selectWithIndex, toStackMethods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringMethods inherited from interface org.eclipse.collections.api.ordered.primitive.ReversibleBooleanIterable
asReversed, getLast, injectIntoWithIndex
-
Method Details
-
addAtIndex
void addAtIndex(int index, boolean element) -
addAllAtIndex
boolean addAllAtIndex(int index, boolean... source) -
addAllAtIndex
-
removeAtIndex
boolean removeAtIndex(int index) -
set
boolean set(int index, boolean element) -
boxed
MutableList<Boolean> boxed() -
swap
default void swap(int index1, int index2) -
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 interfaceBooleanList- Specified by:
selectin interfaceMutableBooleanCollection- Specified by:
selectin interfaceOrderedBooleanIterable- Specified by:
selectin interfaceReversibleBooleanIterable
-
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 interfaceBooleanList- Specified by:
rejectin interfaceMutableBooleanCollection- Specified by:
rejectin interfaceOrderedBooleanIterable- Specified by:
rejectin interfaceReversibleBooleanIterable
-
with
- Specified by:
within interfaceMutableBooleanCollection
-
without
- Specified by:
withoutin interfaceMutableBooleanCollection
-
withAll
- Specified by:
withAllin interfaceMutableBooleanCollection
-
withoutAll
- Specified by:
withoutAllin interfaceMutableBooleanCollection
-
tap
- Specified by:
tapin interfaceBooleanIterable- Specified by:
tapin interfaceBooleanList- Specified by:
tapin interfaceMutableBooleanCollection- Since:
- 9.0.
-
selectWithIndex
Returns a new MutableBooleanList including all elements with corresponding indexes matching the specified predicate.- Specified by:
selectWithIndexin interfaceBooleanList- Specified by:
selectWithIndexin interfaceOrderedBooleanIterable- Specified by:
selectWithIndexin interfaceReversibleBooleanIterable- Since:
- 11.1.
-
rejectWithIndex
Returns a new MutableBooleanList excluding all elements with corresponding indexes matching the specified predicate.- Specified by:
rejectWithIndexin interfaceBooleanList- Specified by:
rejectWithIndexin interfaceOrderedBooleanIterable- Specified by:
rejectWithIndexin interfaceReversibleBooleanIterable- Since:
- 11.1.
-
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 interfaceBooleanList- Specified by:
collectin interfaceMutableBooleanCollection- Specified by:
collectin interfaceOrderedBooleanIterable- Specified by:
collectin interfaceReversibleBooleanIterable
-
collectWithIndex
Returns a new MutableList using results obtained by applying the specified function to each element and its corresponding index.- Specified by:
collectWithIndexin interfaceBooleanList- Specified by:
collectWithIndexin interfaceOrderedBooleanIterable- Specified by:
collectWithIndexin interfaceReversibleBooleanIterable- Since:
- 9.1.
-
reverseThis
MutableBooleanList reverseThis() -
toReversed
MutableBooleanList toReversed()- Specified by:
toReversedin interfaceBooleanList- Specified by:
toReversedin interfaceReversibleBooleanIterable
-
distinct
MutableBooleanList distinct()- Specified by:
distinctin interfaceBooleanList- Specified by:
distinctin interfaceReversibleBooleanIterable- Since:
- 6.0.
-
asUnmodifiable
MutableBooleanList asUnmodifiable()- Specified by:
asUnmodifiablein interfaceMutableBooleanCollection
-
asSynchronized
MutableBooleanList asSynchronized()- Specified by:
asSynchronizedin interfaceMutableBooleanCollection
-
toImmutable
ImmutableBooleanList toImmutable()Returns an immutable copy of this list.- Specified by:
toImmutablein interfaceBooleanList- Specified by:
toImmutablein interfaceMutableBooleanCollection
-
subList
- Specified by:
subListin interfaceBooleanList- See Also:
-
zipBoolean
Returns aMutableListformed from thisMutableBooleanListand anotherBooleanListby combining corresponding elements in pairs. If one of the twoBooleanLists is longer than the other, its remaining elements are ignored.- Specified by:
zipBooleanin interfaceBooleanList- Since:
- 9.1.
-
zip
Returns aMutableListformed from thisMutableBooleanListand aListIterableby combining corresponding elements in pairs. If one of the two Lists is longer than the other, its remaining elements are ignored.- Specified by:
zipin interfaceBooleanList- Since:
- 9.1.
-
newEmpty
Creates a new empty mutable version of the same List type.- Specified by:
newEmptyin interfaceMutableBooleanCollection- Since:
- 9.2.
-