Interface MutableBooleanList
- All Superinterfaces:
BooleanIterable
,BooleanList
,MutableBooleanCollection
,OrderedBooleanIterable
,PrimitiveIterable
,ReversibleBooleanIterable
- All Known Implementing Classes:
BooleanArrayList
,SynchronizedBooleanList
,UnmodifiableBooleanList
public interface MutableBooleanList extends MutableBooleanCollection, BooleanList
This file was automatically generated from template file mutablePrimitiveList.stg.
- Since:
- 3.0.
-
Method Summary
Modifier and Type Method Description boolean
addAllAtIndex(int index, boolean... source)
boolean
addAllAtIndex(int index, BooleanIterable source)
void
addAtIndex(int index, boolean element)
MutableBooleanList
asSynchronized()
MutableBooleanList
asUnmodifiable()
<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.MutableBooleanList
distinct()
default MutableBooleanList
newEmpty()
Creates a new empty mutable version of the same List type.MutableBooleanList
reject(BooleanPredicate predicate)
Returns a new BooleanIterable with all of the elements in the BooleanIterable that return false for the specified predicate.boolean
removeAtIndex(int index)
MutableBooleanList
reverseThis()
MutableBooleanList
select(BooleanPredicate predicate)
Returns a new BooleanIterable with all of the elements in the BooleanIterable that return true for the specified predicate.boolean
set(int index, boolean element)
MutableBooleanList
subList(int fromIndex, int toIndex)
default void
swap(int index1, int index2)
default MutableBooleanList
tap(BooleanProcedure procedure)
ImmutableBooleanList
toImmutable()
Returns an immutable copy of this list.MutableBooleanList
toReversed()
MutableBooleanList
with(boolean element)
MutableBooleanList
withAll(BooleanIterable elements)
MutableBooleanList
without(boolean element)
MutableBooleanList
withoutAll(BooleanIterable elements)
default <T> MutableList<BooleanObjectPair<T>>
zip(Iterable<T> list)
Returns aMutableList
formed from thisMutableBooleanList
and aListIterable
by combining corresponding elements in pairs.default MutableList<BooleanBooleanPair>
zipBoolean(BooleanIterable iterable)
Returns aMutableList
formed from thisMutableBooleanList
and anotherBooleanList
by 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, count, detectIfNone, each, flatCollect, forEach, injectInto, noneSatisfy, reduce, reduceIfEmpty, reject, select, toArray, toArray, toBag, toList, toSet
Methods inherited from interface org.eclipse.collections.api.list.primitive.BooleanList
equals, get, hashCode, lastIndexOf
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.ordered.primitive.OrderedBooleanIterable
collectWithIndex, forEachWithIndex, getFirst, indexOf
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
Methods 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) -
swap
default void swap(int index1, int index2) -
select
Description copied from interface:BooleanIterable
Returns a new BooleanIterable with all of the elements in the BooleanIterable that return true for the specified predicate.- Specified by:
select
in interfaceBooleanIterable
- Specified by:
select
in interfaceBooleanList
- Specified by:
select
in interfaceMutableBooleanCollection
- Specified by:
select
in interfaceOrderedBooleanIterable
- Specified by:
select
in interfaceReversibleBooleanIterable
-
reject
Description copied from interface:BooleanIterable
Returns a new BooleanIterable with all of the elements in the BooleanIterable that return false for the specified predicate.- Specified by:
reject
in interfaceBooleanIterable
- Specified by:
reject
in interfaceBooleanList
- Specified by:
reject
in interfaceMutableBooleanCollection
- Specified by:
reject
in interfaceOrderedBooleanIterable
- Specified by:
reject
in interfaceReversibleBooleanIterable
-
with
- Specified by:
with
in interfaceMutableBooleanCollection
-
without
- Specified by:
without
in interfaceMutableBooleanCollection
-
withAll
- Specified by:
withAll
in interfaceMutableBooleanCollection
-
withoutAll
- Specified by:
withoutAll
in interfaceMutableBooleanCollection
-
tap
- Specified by:
tap
in interfaceBooleanIterable
- Specified by:
tap
in interfaceBooleanList
- Specified by:
tap
in interfaceMutableBooleanCollection
- Since:
- 9.0.
-
collect
Description copied from interface:BooleanIterable
Returns 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:
collect
in interfaceBooleanIterable
- Specified by:
collect
in interfaceBooleanList
- Specified by:
collect
in interfaceMutableBooleanCollection
- Specified by:
collect
in interfaceOrderedBooleanIterable
- Specified by:
collect
in interfaceReversibleBooleanIterable
-
collectWithIndex
Returns a new MutableList using results obtained by applying the specified function to each element and its corresponding index.- Specified by:
collectWithIndex
in interfaceBooleanList
- Specified by:
collectWithIndex
in interfaceOrderedBooleanIterable
- Specified by:
collectWithIndex
in interfaceReversibleBooleanIterable
- Since:
- 9.1.
-
reverseThis
MutableBooleanList reverseThis() -
toReversed
MutableBooleanList toReversed()- Specified by:
toReversed
in interfaceBooleanList
- Specified by:
toReversed
in interfaceReversibleBooleanIterable
-
distinct
MutableBooleanList distinct()- Specified by:
distinct
in interfaceBooleanList
- Specified by:
distinct
in interfaceReversibleBooleanIterable
- Since:
- 6.0.
-
asUnmodifiable
MutableBooleanList asUnmodifiable()- Specified by:
asUnmodifiable
in interfaceMutableBooleanCollection
-
asSynchronized
MutableBooleanList asSynchronized()- Specified by:
asSynchronized
in interfaceMutableBooleanCollection
-
toImmutable
ImmutableBooleanList toImmutable()Returns an immutable copy of this list.- Specified by:
toImmutable
in interfaceBooleanList
- Specified by:
toImmutable
in interfaceMutableBooleanCollection
-
subList
- Specified by:
subList
in interfaceBooleanList
- See Also:
List.subList(int fromIndex, int toIndex)
-
zipBoolean
Returns aMutableList
formed from thisMutableBooleanList
and anotherBooleanList
by combining corresponding elements in pairs. If one of the twoBooleanList
s is longer than the other, its remaining elements are ignored.- Specified by:
zipBoolean
in interfaceBooleanList
- Since:
- 9.1.
-
zip
Returns aMutableList
formed from thisMutableBooleanList
and aListIterable
by combining corresponding elements in pairs. If one of the two Lists is longer than the other, its remaining elements are ignored.- Specified by:
zip
in interfaceBooleanList
- Since:
- 9.1.
-
newEmpty
Creates a new empty mutable version of the same List type.- Specified by:
newEmpty
in interfaceMutableBooleanCollection
- Since:
- 9.2.
-