Interface ImmutableCharList
- All Superinterfaces:
CharIterable,CharList,ImmutableCharCollection,OrderedCharIterable,PrimitiveIterable,ReversibleCharIterable
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 ImmutableCharListrejectWithIndex(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 ImmutableCharListselectWithIndex(CharIntPredicate predicate) Returns a new ImmutableCharList including all elements with corresponding indexes matching the specified predicate.subList(int fromIndex, int toIndex) default ImmutableCharListtap(CharProcedure procedure) default <T> ImmutableList<CharObjectPair<T>>Returns anImmutableListformed from thisImmutableCharListand aListIterableby combining corresponding elements in pairs.default ImmutableList<CharCharPair>zipChar(CharIterable iterable) Returns anImmutableListformed from thisImmutableCharListand anotherCharListby 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, toSortedListByMethods inherited from interface org.eclipse.collections.api.list.primitive.CharList
binarySearch, dotProduct, equals, forEachInBoth, get, hashCode, lastIndexOf, toImmutableMethods inherited from interface org.eclipse.collections.api.ordered.primitive.OrderedCharIterable
collectWithIndex, forEachWithIndex, getFirst, indexOf, rejectWithIndex, selectWithIndex, toStackMethods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringMethods inherited from interface org.eclipse.collections.api.ordered.primitive.ReversibleCharIterable
asReversed, getLast, injectIntoWithIndex
-
Method Details
-
select
Description copied from interface:CharIterableReturns a new CharIterable with all of the elements in the CharIterable that return true for the specified predicate.- Specified by:
selectin interfaceCharIterable- Specified by:
selectin interfaceCharList- Specified by:
selectin interfaceImmutableCharCollection- Specified by:
selectin interfaceOrderedCharIterable- Specified by:
selectin interfaceReversibleCharIterable
-
reject
Description copied from interface:CharIterableReturns a new CharIterable with all of the elements in the CharIterable that return false for the specified predicate.- Specified by:
rejectin interfaceCharIterable- Specified by:
rejectin interfaceCharList- Specified by:
rejectin interfaceImmutableCharCollection- Specified by:
rejectin interfaceOrderedCharIterable- Specified by:
rejectin interfaceReversibleCharIterable
-
tap
- Specified by:
tapin interfaceCharIterable- Specified by:
tapin interfaceCharList- Specified by:
tapin interfaceImmutableCharCollection- Since:
- 9.0.
-
selectWithIndex
Returns a new ImmutableCharList including all elements with corresponding indexes matching the specified predicate.- Specified by:
selectWithIndexin interfaceCharList- Specified by:
selectWithIndexin interfaceOrderedCharIterable- Specified by:
selectWithIndexin interfaceReversibleCharIterable- Since:
- 11.1.
-
rejectWithIndex
Returns a new ImmutableCharList excluding all elements with corresponding indexes matching the specified predicate.- Specified by:
rejectWithIndexin interfaceCharList- Specified by:
rejectWithIndexin interfaceOrderedCharIterable- Specified by:
rejectWithIndexin interfaceReversibleCharIterable- Since:
- 11.1.
-
collect
Description copied from interface:CharIterableReturns 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 interfaceCharIterable- Specified by:
collectin interfaceCharList- Specified by:
collectin interfaceImmutableCharCollection- Specified by:
collectin interfaceOrderedCharIterable- Specified by:
collectin interfaceReversibleCharIterable
-
collectWithIndex
Returns a new ImmutableList using results obtained by applying the specified function to each element and its corresponding index.- Specified by:
collectWithIndexin interfaceCharList- Specified by:
collectWithIndexin interfaceOrderedCharIterable- Specified by:
collectWithIndexin interfaceReversibleCharIterable- Since:
- 9.1.
-
newWith
- Specified by:
newWithin interfaceImmutableCharCollection
-
newWithout
- Specified by:
newWithoutin interfaceImmutableCharCollection
-
newWithAll
- Specified by:
newWithAllin interfaceImmutableCharCollection
-
newWithoutAll
- Specified by:
newWithoutAllin interfaceImmutableCharCollection
-
toReversed
ImmutableCharList toReversed()- Specified by:
toReversedin interfaceCharList- Specified by:
toReversedin interfaceReversibleCharIterable
-
distinct
ImmutableCharList distinct()- Specified by:
distinctin interfaceCharList- Specified by:
distinctin interfaceReversibleCharIterable- Since:
- 6.0.
-
subList
-
zipChar
Returns anImmutableListformed from thisImmutableCharListand anotherCharListby combining corresponding elements in pairs. If one of the twoCharLists is longer than the other, its remaining elements are ignored. -
zip
Returns anImmutableListformed from thisImmutableCharListand aListIterableby combining corresponding elements in pairs. If one of the two Lists is longer than the other, its remaining elements are ignored.
-