Interface ImmutableBooleanList
-
- All Superinterfaces:
BooleanIterable
,BooleanList
,ImmutableBooleanCollection
,OrderedBooleanIterable
,PrimitiveIterable
,ReversibleBooleanIterable
- All Known Implementing Classes:
ImmutableBooleanArrayList
,ImmutableBooleanEmptyList
,ImmutableBooleanSingletonList
public interface ImmutableBooleanList extends ImmutableBooleanCollection, BooleanList
This file was automatically generated from template file immutablePrimitiveList.stg.- Since:
- 3.0.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description <V> ImmutableList<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> ImmutableList<V>
collectWithIndex(BooleanIntToObjectFunction<? extends V> function)
Returns a new ImmutableList using results obtained by applying the specified function to each element and its corresponding index.ImmutableBooleanList
distinct()
ImmutableBooleanList
newWith(boolean element)
ImmutableBooleanList
newWithAll(BooleanIterable elements)
ImmutableBooleanList
newWithout(boolean element)
ImmutableBooleanList
newWithoutAll(BooleanIterable elements)
ImmutableBooleanList
reject(BooleanPredicate predicate)
Returns a new BooleanIterable with all of the elements in the BooleanIterable that return false for the specified predicate.default ImmutableBooleanList
rejectWithIndex(BooleanIntPredicate predicate)
Returns a new ImmutableBooleanList excluding all elements with corresponding indexes matching the specified predicate.ImmutableBooleanList
select(BooleanPredicate predicate)
Returns a new BooleanIterable with all of the elements in the BooleanIterable that return true for the specified predicate.default ImmutableBooleanList
selectWithIndex(BooleanIntPredicate predicate)
Returns a new ImmutableBooleanList including all elements with corresponding indexes matching the specified predicate.ImmutableBooleanList
subList(int fromIndex, int toIndex)
default ImmutableBooleanList
tap(BooleanProcedure procedure)
ImmutableBooleanList
toReversed()
default <T> ImmutableList<BooleanObjectPair<T>>
zip(java.lang.Iterable<T> iterable)
Returns anImmutableList
formed from thisImmutableBooleanList
and aListIterable
by combining corresponding elements in pairs.default ImmutableList<BooleanBooleanPair>
zipBoolean(BooleanIterable iterable)
Returns anImmutableList
formed from thisImmutableBooleanList
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, 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.list.primitive.BooleanList
equals, forEachInBoth, get, hashCode, lastIndexOf, toImmutable
-
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
-
select
ImmutableBooleanList select(BooleanPredicate predicate)
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 interfaceBooleanList
- Specified by:
select
in interfaceImmutableBooleanCollection
- Specified by:
select
in interfaceOrderedBooleanIterable
- Specified by:
select
in interfaceReversibleBooleanIterable
-
reject
ImmutableBooleanList reject(BooleanPredicate predicate)
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 interfaceBooleanList
- Specified by:
reject
in interfaceImmutableBooleanCollection
- Specified by:
reject
in interfaceOrderedBooleanIterable
- Specified by:
reject
in interfaceReversibleBooleanIterable
-
tap
default ImmutableBooleanList tap(BooleanProcedure procedure)
- Specified by:
tap
in interfaceBooleanIterable
- Specified by:
tap
in interfaceBooleanList
- Specified by:
tap
in interfaceImmutableBooleanCollection
- Since:
- 9.0.
-
selectWithIndex
default ImmutableBooleanList selectWithIndex(BooleanIntPredicate predicate)
Returns a new ImmutableBooleanList including all elements with corresponding indexes matching the specified predicate.- Specified by:
selectWithIndex
in interfaceBooleanList
- Specified by:
selectWithIndex
in interfaceOrderedBooleanIterable
- Specified by:
selectWithIndex
in interfaceReversibleBooleanIterable
- Since:
- 11.1.
-
rejectWithIndex
default ImmutableBooleanList rejectWithIndex(BooleanIntPredicate predicate)
Returns a new ImmutableBooleanList excluding all elements with corresponding indexes matching the specified predicate.- Specified by:
rejectWithIndex
in interfaceBooleanList
- Specified by:
rejectWithIndex
in interfaceOrderedBooleanIterable
- Specified by:
rejectWithIndex
in interfaceReversibleBooleanIterable
- Since:
- 11.1.
-
collect
<V> ImmutableList<V> collect(BooleanToObjectFunction<? extends V> function)
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 interfaceBooleanList
- Specified by:
collect
in interfaceImmutableBooleanCollection
- Specified by:
collect
in interfaceOrderedBooleanIterable
- Specified by:
collect
in interfaceReversibleBooleanIterable
-
collectWithIndex
default <V> ImmutableList<V> collectWithIndex(BooleanIntToObjectFunction<? extends V> function)
Returns a new ImmutableList using results obtained by applying the specified function to each element and its corresponding index.- Specified by:
collectWithIndex
in interfaceBooleanList
- Specified by:
collectWithIndex
in interfaceOrderedBooleanIterable
- Specified by:
collectWithIndex
in interfaceReversibleBooleanIterable
- Since:
- 9.1.
-
newWith
ImmutableBooleanList newWith(boolean element)
- Specified by:
newWith
in interfaceImmutableBooleanCollection
-
newWithout
ImmutableBooleanList newWithout(boolean element)
- Specified by:
newWithout
in interfaceImmutableBooleanCollection
-
newWithAll
ImmutableBooleanList newWithAll(BooleanIterable elements)
- Specified by:
newWithAll
in interfaceImmutableBooleanCollection
-
newWithoutAll
ImmutableBooleanList newWithoutAll(BooleanIterable elements)
- Specified by:
newWithoutAll
in interfaceImmutableBooleanCollection
-
toReversed
ImmutableBooleanList toReversed()
- Specified by:
toReversed
in interfaceBooleanList
- Specified by:
toReversed
in interfaceReversibleBooleanIterable
-
distinct
ImmutableBooleanList distinct()
- Specified by:
distinct
in interfaceBooleanList
- Specified by:
distinct
in interfaceReversibleBooleanIterable
- Since:
- 6.0.
-
subList
ImmutableBooleanList subList(int fromIndex, int toIndex)
- Specified by:
subList
in interfaceBooleanList
- See Also:
List.subList(int fromIndex, int toIndex)
-
zipBoolean
default ImmutableList<BooleanBooleanPair> zipBoolean(BooleanIterable iterable)
Returns anImmutableList
formed from thisImmutableBooleanList
and anotherBooleanList
by combining corresponding elements in pairs. If one of the twoBooleanList
s is longer than the other, its remaining elements are ignored.- Specified by:
zipBoolean
in interfaceBooleanList
- Since:
- 9.1.
-
zip
default <T> ImmutableList<BooleanObjectPair<T>> zip(java.lang.Iterable<T> iterable)
Returns anImmutableList
formed from thisImmutableBooleanList
and aListIterable
by combining corresponding elements in pairs. If one of the two Lists is longer than the other, its remaining elements are ignored.- Specified by:
zip
in interfaceBooleanList
- Since:
- 9.1.
-
-