Interface ImmutableCharList
- All Superinterfaces:
CharIterable
,CharList
,ImmutableCharCollection
,OrderedCharIterable
,PrimitiveIterable
,ReversibleCharIterable
- All Known Implementing Classes:
CharAdapter
This file was automatically generated from template file immutablePrimitiveList.stg.
- Since:
- 3.0.
-
Method Summary
Modifier and TypeMethodDescription<V> ImmutableList<V>
collect
(CharToObjectFunction<? 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
(CharIntToObjectFunction<? extends V> function) Returns a new ImmutableList using results obtained by applying the specified function to each element and its corresponding index.distinct()
newWith
(char element) newWithAll
(CharIterable elements) newWithout
(char element) newWithoutAll
(CharIterable elements) reject
(CharPredicate predicate) Returns a new CharIterable with all of the elements in the CharIterable that return false for the specified predicate.default ImmutableCharList
rejectWithIndex
(CharIntPredicate predicate) Returns a new ImmutableCharList excluding all elements with corresponding indexes matching the specified predicate.select
(CharPredicate predicate) Returns a new CharIterable with all of the elements in the CharIterable that return true for the specified predicate.default ImmutableCharList
selectWithIndex
(CharIntPredicate predicate) Returns a new ImmutableCharList including all elements with corresponding indexes matching the specified predicate.subList
(int fromIndex, int toIndex) default ImmutableCharList
tap
(CharProcedure procedure) default <T> ImmutableList<CharObjectPair<T>>
Returns anImmutableList
formed from thisImmutableCharList
and aListIterable
by combining corresponding elements in pairs.default ImmutableList<CharCharPair>
zipChar
(CharIterable iterable) Returns anImmutableList
formed from thisImmutableCharList
and anotherCharList
by combining corresponding elements in pairs.Methods inherited from interface org.eclipse.collections.api.CharIterable
allSatisfy, anySatisfy, asLazy, average, averageIfEmpty, charIterator, 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, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toSortedList, toSortedListBy, toSortedListBy
Methods inherited from interface org.eclipse.collections.api.list.primitive.CharList
binarySearch, dotProduct, equals, forEachInBoth, get, hashCode, lastIndexOf, toImmutable
Methods inherited from interface org.eclipse.collections.api.ordered.primitive.OrderedCharIterable
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.ReversibleCharIterable
asReversed, getLast, injectIntoWithIndex
-
Method Details
-
select
Description copied from interface:CharIterable
Returns a new CharIterable with all of the elements in the CharIterable that return true for the specified predicate.- Specified by:
select
in interfaceCharIterable
- Specified by:
select
in interfaceCharList
- Specified by:
select
in interfaceImmutableCharCollection
- Specified by:
select
in interfaceOrderedCharIterable
- Specified by:
select
in interfaceReversibleCharIterable
-
reject
Description copied from interface:CharIterable
Returns a new CharIterable with all of the elements in the CharIterable that return false for the specified predicate.- Specified by:
reject
in interfaceCharIterable
- Specified by:
reject
in interfaceCharList
- Specified by:
reject
in interfaceImmutableCharCollection
- Specified by:
reject
in interfaceOrderedCharIterable
- Specified by:
reject
in interfaceReversibleCharIterable
-
tap
- Specified by:
tap
in interfaceCharIterable
- Specified by:
tap
in interfaceCharList
- Specified by:
tap
in interfaceImmutableCharCollection
- Since:
- 9.0.
-
selectWithIndex
Returns a new ImmutableCharList including all elements with corresponding indexes matching the specified predicate.- Specified by:
selectWithIndex
in interfaceCharList
- Specified by:
selectWithIndex
in interfaceOrderedCharIterable
- Specified by:
selectWithIndex
in interfaceReversibleCharIterable
- Since:
- 11.1.
-
rejectWithIndex
Returns a new ImmutableCharList excluding all elements with corresponding indexes matching the specified predicate.- Specified by:
rejectWithIndex
in interfaceCharList
- Specified by:
rejectWithIndex
in interfaceOrderedCharIterable
- Specified by:
rejectWithIndex
in interfaceReversibleCharIterable
- Since:
- 11.1.
-
collect
Description copied from interface:CharIterable
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 interfaceCharIterable
- Specified by:
collect
in interfaceCharList
- Specified by:
collect
in interfaceImmutableCharCollection
- Specified by:
collect
in interfaceOrderedCharIterable
- Specified by:
collect
in interfaceReversibleCharIterable
-
collectWithIndex
Returns a new ImmutableList using results obtained by applying the specified function to each element and its corresponding index.- Specified by:
collectWithIndex
in interfaceCharList
- Specified by:
collectWithIndex
in interfaceOrderedCharIterable
- Specified by:
collectWithIndex
in interfaceReversibleCharIterable
- Since:
- 9.1.
-
newWith
- Specified by:
newWith
in interfaceImmutableCharCollection
-
newWithout
- Specified by:
newWithout
in interfaceImmutableCharCollection
-
newWithAll
- Specified by:
newWithAll
in interfaceImmutableCharCollection
-
newWithoutAll
- Specified by:
newWithoutAll
in interfaceImmutableCharCollection
-
toReversed
ImmutableCharList toReversed()- Specified by:
toReversed
in interfaceCharList
- Specified by:
toReversed
in interfaceReversibleCharIterable
-
distinct
ImmutableCharList distinct()- Specified by:
distinct
in interfaceCharList
- Specified by:
distinct
in interfaceReversibleCharIterable
- Since:
- 6.0.
-
subList
-
zipChar
Returns anImmutableList
formed from thisImmutableCharList
and anotherCharList
by combining corresponding elements in pairs. If one of the twoCharList
s is longer than the other, its remaining elements are ignored. -
zip
Returns anImmutableList
formed from thisImmutableCharList
and aListIterable
by combining corresponding elements in pairs. If one of the two Lists is longer than the other, its remaining elements are ignored.
-