BooleanIterable
, BooleanList
, MutableBooleanCollection
, OrderedBooleanIterable
, PrimitiveIterable
, ReversibleBooleanIterable
BooleanArrayList
, SynchronizedBooleanList
, UnmodifiableBooleanList
public interface MutableBooleanList extends MutableBooleanCollection, BooleanList
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 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 a
MutableList formed from this MutableBooleanList and a ListIterable by
combining corresponding elements in pairs. |
default MutableList<BooleanBooleanPair> |
zipBoolean(BooleanIterable iterable) |
Returns a
MutableList formed from this MutableBooleanList and another BooleanList by
combining corresponding elements in pairs. |
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, toBag, toList, toSet
equals, get, hashCode, lastIndexOf
add, addAll, addAll, booleanIterator, clear, remove, removeAll, removeAll, removeIf, retainAll, retainAll
collectWithIndex, forEachWithIndex, getFirst, indexOf
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
asReversed, getLast, injectIntoWithIndex
void addAtIndex(int index, boolean element)
boolean addAllAtIndex(int index, boolean... source)
boolean addAllAtIndex(int index, BooleanIterable source)
boolean removeAtIndex(int index)
boolean set(int index, boolean element)
MutableBooleanList select(BooleanPredicate predicate)
BooleanIterable
select
in interface BooleanIterable
select
in interface BooleanList
select
in interface MutableBooleanCollection
select
in interface OrderedBooleanIterable
select
in interface ReversibleBooleanIterable
MutableBooleanList reject(BooleanPredicate predicate)
BooleanIterable
reject
in interface BooleanIterable
reject
in interface BooleanList
reject
in interface MutableBooleanCollection
reject
in interface OrderedBooleanIterable
reject
in interface ReversibleBooleanIterable
MutableBooleanList with(boolean element)
with
in interface MutableBooleanCollection
MutableBooleanList without(boolean element)
without
in interface MutableBooleanCollection
MutableBooleanList withAll(BooleanIterable elements)
withAll
in interface MutableBooleanCollection
MutableBooleanList withoutAll(BooleanIterable elements)
withoutAll
in interface MutableBooleanCollection
default MutableBooleanList tap(BooleanProcedure procedure)
tap
in interface BooleanIterable
tap
in interface BooleanList
tap
in interface MutableBooleanCollection
<V> MutableList<V> collect(BooleanToObjectFunction<? extends V> function)
BooleanIterable
collect
in interface BooleanIterable
collect
in interface BooleanList
collect
in interface MutableBooleanCollection
collect
in interface OrderedBooleanIterable
collect
in interface ReversibleBooleanIterable
default <V> MutableList<V> collectWithIndex(BooleanIntToObjectFunction<? extends V> function)
collectWithIndex
in interface BooleanList
collectWithIndex
in interface OrderedBooleanIterable
collectWithIndex
in interface ReversibleBooleanIterable
MutableBooleanList reverseThis()
MutableBooleanList toReversed()
toReversed
in interface BooleanList
toReversed
in interface ReversibleBooleanIterable
MutableBooleanList distinct()
distinct
in interface BooleanList
distinct
in interface ReversibleBooleanIterable
MutableBooleanList asUnmodifiable()
asUnmodifiable
in interface MutableBooleanCollection
MutableBooleanList asSynchronized()
asSynchronized
in interface MutableBooleanCollection
ImmutableBooleanList toImmutable()
toImmutable
in interface BooleanList
toImmutable
in interface MutableBooleanCollection
MutableBooleanList subList(int fromIndex, int toIndex)
subList
in interface BooleanList
List.subList(int fromIndex, int toIndex)
default MutableList<BooleanBooleanPair> zipBoolean(BooleanIterable iterable)
MutableList
formed from this MutableBooleanList
and another BooleanList
by
combining corresponding elements in pairs. If one of the two BooleanList
s is longer than the other, its
remaining elements are ignored.zipBoolean
in interface BooleanList
default <T> MutableList<BooleanObjectPair<T>> zip(Iterable<T> list)
MutableList
formed from this MutableBooleanList
and a ListIterable
by
combining corresponding elements in pairs. If one of the two Lists is longer than the other, its
remaining elements are ignored.zip
in interface BooleanList
default MutableBooleanList newEmpty()
newEmpty
in interface MutableBooleanCollection
Copyright © 2004–2019. All rights reserved.