Interface ImmutableCharList
-
- All Superinterfaces:
CharIterable,CharList,ImmutableCharCollection,OrderedCharIterable,PrimitiveIterable,ReversibleCharIterable
public interface ImmutableCharList extends ImmutableCharCollection, CharList
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(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.ImmutableCharListdistinct()ImmutableCharListnewWith(char element)ImmutableCharListnewWithAll(CharIterable elements)ImmutableCharListnewWithout(char element)ImmutableCharListnewWithoutAll(CharIterable elements)ImmutableCharListreject(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.ImmutableCharListselect(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.ImmutableCharListsubList(int fromIndex, int toIndex)default ImmutableCharListtap(CharProcedure procedure)ImmutableCharListtoReversed()default <T> ImmutableList<CharObjectPair<T>>zip(Iterable<T> iterable)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, 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 Detail
-
select
ImmutableCharList select(CharPredicate predicate)
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
ImmutableCharList reject(CharPredicate predicate)
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
default ImmutableCharList tap(CharProcedure procedure)
- Specified by:
tapin interfaceCharIterable- Specified by:
tapin interfaceCharList- Specified by:
tapin interfaceImmutableCharCollection- Since:
- 9.0.
-
selectWithIndex
default ImmutableCharList selectWithIndex(CharIntPredicate predicate)
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
default ImmutableCharList rejectWithIndex(CharIntPredicate predicate)
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
<V> ImmutableList<V> collect(CharToObjectFunction<? extends V> function)
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
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.- Specified by:
collectWithIndexin interfaceCharList- Specified by:
collectWithIndexin interfaceOrderedCharIterable- Specified by:
collectWithIndexin interfaceReversibleCharIterable- Since:
- 9.1.
-
newWith
ImmutableCharList newWith(char element)
- Specified by:
newWithin interfaceImmutableCharCollection
-
newWithout
ImmutableCharList newWithout(char element)
- Specified by:
newWithoutin interfaceImmutableCharCollection
-
newWithAll
ImmutableCharList newWithAll(CharIterable elements)
- Specified by:
newWithAllin interfaceImmutableCharCollection
-
newWithoutAll
ImmutableCharList newWithoutAll(CharIterable elements)
- 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
ImmutableCharList subList(int fromIndex, int toIndex)
- Specified by:
subListin interfaceCharList- See Also:
List.subList(int fromIndex, int toIndex)
-
zipChar
default ImmutableList<CharCharPair> zipChar(CharIterable iterable)
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
default <T> ImmutableList<CharObjectPair<T>> zip(Iterable<T> iterable)
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.
-
-