Interface BooleanList
-
- All Superinterfaces:
BooleanIterable,OrderedBooleanIterable,PrimitiveIterable,ReversibleBooleanIterable
- All Known Subinterfaces:
ImmutableBooleanList,MutableBooleanList
public interface BooleanList extends ReversibleBooleanIterable
This file was automatically generated from template file primitiveList.stg.- Since:
- 3.0.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods 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.BooleanListdistinct()booleanequals(Object o)Follows the same general contract asList.equals(Object).default voidforEachInBoth(BooleanList other, BooleanBooleanProcedure procedure)This method iterates over two CharList instances of the same size together using the specified CharCharProcedure.booleanget(int index)inthashCode()Follows the same general contract asList.hashCode().intlastIndexOf(boolean value)BooleanListreject(BooleanPredicate predicate)Returns a new BooleanIterable with all of the elements in the BooleanIterable that return false for the specified predicate.default BooleanListrejectWithIndex(BooleanIntPredicate predicate)Returns a new BooleanList excluding all elements with corresponding indexes matching the specified predicate.BooleanListselect(BooleanPredicate predicate)Returns a new BooleanIterable with all of the elements in the BooleanIterable that return true for the specified predicate.default BooleanListselectWithIndex(BooleanIntPredicate predicate)Returns a new BooleanList including all elements with corresponding indexes matching the specified predicate.BooleanListsubList(int fromIndex, int toIndex)default BooleanListtap(BooleanProcedure procedure)ImmutableBooleanListtoImmutable()Returns an immutable copy of this list.BooleanListtoReversed()default <T> ListIterable<BooleanObjectPair<T>>zip(Iterable<T> iterable)Returns aListIterableformed from thisBooleanListand aListIterableby combining corresponding elements in pairs.default ListIterable<BooleanBooleanPair>zipBoolean(BooleanIterable iterable)Returns aListIterableformed from thisBooleanListand anotherBooleanListby 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, 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, toSet
-
Methods inherited from interface org.eclipse.collections.api.ordered.primitive.OrderedBooleanIterable
collectWithIndex, forEachWithIndex, getFirst, indexOf, rejectWithIndex, selectWithIndex
-
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 Detail
-
get
boolean get(int index)
-
lastIndexOf
int lastIndexOf(boolean value)
-
select
BooleanList select(BooleanPredicate predicate)
Description copied from interface:BooleanIterableReturns a new BooleanIterable with all of the elements in the BooleanIterable that return true for the specified predicate.- Specified by:
selectin interfaceBooleanIterable- Specified by:
selectin interfaceOrderedBooleanIterable- Specified by:
selectin interfaceReversibleBooleanIterable
-
reject
BooleanList reject(BooleanPredicate predicate)
Description copied from interface:BooleanIterableReturns a new BooleanIterable with all of the elements in the BooleanIterable that return false for the specified predicate.- Specified by:
rejectin interfaceBooleanIterable- Specified by:
rejectin interfaceOrderedBooleanIterable- Specified by:
rejectin interfaceReversibleBooleanIterable
-
tap
default BooleanList tap(BooleanProcedure procedure)
- Specified by:
tapin interfaceBooleanIterable- Since:
- 9.0.
-
forEachInBoth
default void forEachInBoth(BooleanList other, BooleanBooleanProcedure procedure)
This method iterates over two CharList instances of the same size together using the specified CharCharProcedure.- Since:
- 11.1
-
selectWithIndex
default BooleanList selectWithIndex(BooleanIntPredicate predicate)
Returns a new BooleanList including all elements with corresponding indexes matching the specified predicate.- Specified by:
selectWithIndexin interfaceOrderedBooleanIterable- Specified by:
selectWithIndexin interfaceReversibleBooleanIterable- Since:
- 11.1.
-
rejectWithIndex
default BooleanList rejectWithIndex(BooleanIntPredicate predicate)
Returns a new BooleanList excluding all elements with corresponding indexes matching the specified predicate.- Specified by:
rejectWithIndexin interfaceOrderedBooleanIterable- Specified by:
rejectWithIndexin interfaceReversibleBooleanIterable- Since:
- 11.1.
-
collect
<V> ListIterable<V> collect(BooleanToObjectFunction<? extends V> function)
Description copied from interface:BooleanIterableReturns 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:
collectin interfaceBooleanIterable- Specified by:
collectin interfaceOrderedBooleanIterable- Specified by:
collectin interfaceReversibleBooleanIterable
-
collectWithIndex
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.- Specified by:
collectWithIndexin interfaceOrderedBooleanIterable- Specified by:
collectWithIndexin interfaceReversibleBooleanIterable- Since:
- 9.1.
-
equals
boolean equals(Object o)
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:
distinctin interfaceReversibleBooleanIterable- Since:
- 6.0.
-
toReversed
BooleanList toReversed()
- Specified by:
toReversedin interfaceReversibleBooleanIterable- Since:
- 5.0.
-
subList
BooleanList subList(int fromIndex, int toIndex)
- Since:
- 5.0.
- See Also:
List.subList(int fromIndex, int toIndex)
-
zipBoolean
default ListIterable<BooleanBooleanPair> zipBoolean(BooleanIterable iterable)
Returns aListIterableformed from thisBooleanListand anotherBooleanListby combining corresponding elements in pairs. If one of the twoBooleanLists is longer than the other, its remaining elements are ignored.- Since:
- 9.1.
-
zip
default <T> ListIterable<BooleanObjectPair<T>> zip(Iterable<T> iterable)
Returns aListIterableformed from thisBooleanListand aListIterableby combining corresponding elements in pairs. If one of the two Lists is longer than the other, its remaining elements are ignored.- Since:
- 9.1.
-
-