public interface BooleanList extends ReversibleBooleanIterable
| Modifier and Type | Method and Description |
|---|---|
<V> ListIterable<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> ListIterable<V> |
collectWithIndex(BooleanIntToObjectFunction<? extends V> function)
Returns a new ListIterable using results obtained by applying the specified function to each element
and its corresponding index.
|
BooleanList |
distinct() |
boolean |
equals(Object o)
Follows the same general contract as
List.equals(Object). |
default void |
forEachInBoth(BooleanList other,
BooleanBooleanProcedure procedure)
This method iterates over two CharList instances of the same size together using the specified CharCharProcedure.
|
boolean |
get(int index) |
int |
hashCode()
Follows the same general contract as
List.hashCode(). |
int |
lastIndexOf(boolean value) |
BooleanList |
reject(BooleanPredicate predicate)
Returns a new BooleanIterable with all of the elements in the BooleanIterable that
return false for the specified predicate.
|
default BooleanList |
rejectWithIndex(BooleanIntPredicate predicate)
Returns a new BooleanList excluding all elements with corresponding indexes matching the specified predicate.
|
BooleanList |
select(BooleanPredicate predicate)
Returns a new BooleanIterable with all of the elements in the BooleanIterable that
return true for the specified predicate.
|
default BooleanList |
selectWithIndex(BooleanIntPredicate predicate)
Returns a new BooleanList including all elements with corresponding indexes matching the specified predicate.
|
BooleanList |
subList(int fromIndex,
int toIndex) |
default BooleanList |
tap(BooleanProcedure procedure) |
ImmutableBooleanList |
toImmutable()
Returns an immutable copy of this list.
|
BooleanList |
toReversed() |
default <T> ListIterable<BooleanObjectPair<T>> |
zip(Iterable<T> iterable)
Returns a
ListIterable formed from this BooleanList and a ListIterable by
combining corresponding elements in pairs. |
default ListIterable<BooleanBooleanPair> |
zipBoolean(BooleanIterable iterable)
Returns a
ListIterable formed from this BooleanList and another BooleanList by
combining corresponding elements in pairs. |
asReversed, getLast, injectIntoWithIndexcollectWithIndex, forEachWithIndex, getFirst, indexOf, rejectWithIndex, selectWithIndexallSatisfy, anySatisfy, asLazy, booleanIterator, 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, toSetappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringboolean get(int index)
int lastIndexOf(boolean value)
BooleanList select(BooleanPredicate predicate)
BooleanIterableselect in interface BooleanIterableselect in interface OrderedBooleanIterableselect in interface ReversibleBooleanIterableBooleanList reject(BooleanPredicate predicate)
BooleanIterablereject in interface BooleanIterablereject in interface OrderedBooleanIterablereject in interface ReversibleBooleanIterabledefault BooleanList tap(BooleanProcedure procedure)
tap in interface BooleanIterabledefault void forEachInBoth(BooleanList other, BooleanBooleanProcedure procedure)
default BooleanList selectWithIndex(BooleanIntPredicate predicate)
selectWithIndex in interface OrderedBooleanIterableselectWithIndex in interface ReversibleBooleanIterabledefault BooleanList rejectWithIndex(BooleanIntPredicate predicate)
rejectWithIndex in interface OrderedBooleanIterablerejectWithIndex in interface ReversibleBooleanIterable<V> ListIterable<V> collect(BooleanToObjectFunction<? extends V> function)
BooleanIterablecollect in interface BooleanIterablecollect in interface OrderedBooleanIterablecollect in interface ReversibleBooleanIterabledefault <V> ListIterable<V> collectWithIndex(BooleanIntToObjectFunction<? extends V> function)
collectWithIndex in interface OrderedBooleanIterablecollectWithIndex in interface ReversibleBooleanIterableboolean equals(Object o)
List.equals(Object).int hashCode()
List.hashCode().ImmutableBooleanList toImmutable()
BooleanList distinct()
distinct in interface ReversibleBooleanIterableBooleanList toReversed()
toReversed in interface ReversibleBooleanIterableBooleanList subList(int fromIndex, int toIndex)
List.subList(int fromIndex, int toIndex)default ListIterable<BooleanBooleanPair> zipBoolean(BooleanIterable iterable)
ListIterable formed from this BooleanList and another BooleanList by
combining corresponding elements in pairs. If one of the two BooleanLists is longer than the other, its
remaining elements are ignored.default <T> ListIterable<BooleanObjectPair<T>> zip(Iterable<T> iterable)
ListIterable formed from this BooleanList 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.Copyright © 2004–2022. All rights reserved.