BooleanIterable
, OrderedBooleanIterable
, PrimitiveIterable
, ReversibleBooleanIterable
ImmutableBooleanList
, MutableBooleanList
BooleanArrayList
, SynchronizedBooleanList
, UnmodifiableBooleanList
public interface BooleanList extends ReversibleBooleanIterable
Modifier and Type | Method | 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(java.lang.Object o) |
Follows the same general contract as
List.equals(Object) . |
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.
|
BooleanList |
select(BooleanPredicate predicate) |
Returns a new BooleanIterable with all of the elements in the BooleanIterable that
return true for 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(java.lang.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. |
allSatisfy, anySatisfy, asLazy, booleanIterator, 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
collectWithIndex, forEachWithIndex, getFirst, indexOf
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
asReversed, getLast, injectIntoWithIndex
boolean get(int index)
int lastIndexOf(boolean value)
BooleanList select(BooleanPredicate predicate)
BooleanIterable
select
in interface BooleanIterable
select
in interface OrderedBooleanIterable
select
in interface ReversibleBooleanIterable
BooleanList reject(BooleanPredicate predicate)
BooleanIterable
reject
in interface BooleanIterable
reject
in interface OrderedBooleanIterable
reject
in interface ReversibleBooleanIterable
default BooleanList tap(BooleanProcedure procedure)
tap
in interface BooleanIterable
<V> ListIterable<V> collect(BooleanToObjectFunction<? extends V> function)
BooleanIterable
collect
in interface BooleanIterable
collect
in interface OrderedBooleanIterable
collect
in interface ReversibleBooleanIterable
default <V> ListIterable<V> collectWithIndex(BooleanIntToObjectFunction<? extends V> function)
collectWithIndex
in interface OrderedBooleanIterable
collectWithIndex
in interface ReversibleBooleanIterable
boolean equals(java.lang.Object o)
List.equals(Object)
.equals
in class java.lang.Object
int hashCode()
List.hashCode()
.hashCode
in class java.lang.Object
ImmutableBooleanList toImmutable()
BooleanList distinct()
distinct
in interface ReversibleBooleanIterable
BooleanList toReversed()
toReversed
in interface ReversibleBooleanIterable
BooleanList 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 BooleanList
s is longer than the other, its
remaining elements are ignored.default <T> ListIterable<BooleanObjectPair<T>> zip(java.lang.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–2020. All rights reserved.