Interface BooleanList
- All Superinterfaces:
BooleanIterable
,OrderedBooleanIterable
,PrimitiveIterable
,ReversibleBooleanIterable
- All Known Subinterfaces:
ImmutableBooleanList
,MutableBooleanList
- All Known Implementing Classes:
BooleanArrayList
,SynchronizedBooleanList
,UnmodifiableBooleanList
public interface BooleanList extends ReversibleBooleanIterable
This file was automatically generated from template file primitiveList.stg.
- Since:
- 3.0.
-
Method Summary
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(Object o)
Follows the same general contract asList.equals(Object)
.boolean
get(int index)
int
hashCode()
Follows the same general contract asList.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(Iterable<T> iterable)
Returns aListIterable
formed from thisBooleanList
and aListIterable
by combining corresponding elements in pairs.default ListIterable<BooleanBooleanPair>
zipBoolean(BooleanIterable iterable)
Returns aListIterable
formed from thisBooleanList
and anotherBooleanList
by combining corresponding elements in pairs.Methods inherited from interface org.eclipse.collections.api.BooleanIterable
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, toArray, toBag, toList, toSet
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
-
get
boolean get(int index) -
lastIndexOf
int lastIndexOf(boolean value) -
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 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 interfaceOrderedBooleanIterable
- Specified by:
reject
in interfaceReversibleBooleanIterable
-
tap
- Specified by:
tap
in interfaceBooleanIterable
- 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 interfaceOrderedBooleanIterable
- Specified by:
collect
in interfaceReversibleBooleanIterable
-
collectWithIndex
Returns a new ListIterable using results obtained by applying the specified function to each element and its corresponding index.- Specified by:
collectWithIndex
in interfaceOrderedBooleanIterable
- Specified by:
collectWithIndex
in interfaceReversibleBooleanIterable
- Since:
- 9.1.
-
equals
Follows the same general contract asList.equals(Object)
. -
hashCode
int hashCode()Follows the same general contract asList.hashCode()
. -
toImmutable
ImmutableBooleanList toImmutable()Returns an immutable copy of this list. If the list is immutable, it returns itself. -
distinct
BooleanList distinct()- Specified by:
distinct
in interfaceReversibleBooleanIterable
- Since:
- 6.0.
-
toReversed
BooleanList toReversed()- Specified by:
toReversed
in interfaceReversibleBooleanIterable
- Since:
- 5.0.
-
subList
- Since:
- 5.0.
- See Also:
List.subList(int fromIndex, int toIndex)
-
zipBoolean
Returns aListIterable
formed from thisBooleanList
and anotherBooleanList
by combining corresponding elements in pairs. If one of the twoBooleanList
s is longer than the other, its remaining elements are ignored.- Since:
- 9.1.
-
zip
Returns aListIterable
formed from thisBooleanList
and aListIterable
by combining corresponding elements in pairs. If one of the two Lists is longer than the other, its remaining elements are ignored.- Since:
- 9.1.
-