CharIterable
, CharList
, ImmutableCharCollection
, OrderedCharIterable
, PrimitiveIterable
, ReversibleCharIterable
CharAdapter
public interface ImmutableCharList extends ImmutableCharCollection, CharList
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.
|
ImmutableCharList |
distinct() |
|
ImmutableCharList |
newWith(char element) |
|
ImmutableCharList |
newWithAll(CharIterable elements) |
|
ImmutableCharList |
newWithout(char element) |
|
ImmutableCharList |
newWithoutAll(CharIterable elements) |
|
ImmutableCharList |
reject(CharPredicate predicate) |
Returns a new CharIterable with all of the elements in the CharIterable that
return false for the specified predicate.
|
ImmutableCharList |
select(CharPredicate predicate) |
Returns a new CharIterable with all of the elements in the CharIterable that
return true for the specified predicate.
|
ImmutableCharList |
subList(int fromIndex,
int toIndex) |
|
default ImmutableCharList |
tap(CharProcedure procedure) |
|
ImmutableCharList |
toReversed() |
|
default <T> ImmutableList<CharObjectPair<T>> |
zip(java.lang.Iterable<T> iterable) |
Returns an
ImmutableList formed from this ImmutableCharList and a ListIterable by
combining corresponding elements in pairs. |
default ImmutableList<CharCharPair> |
zipChar(CharIterable iterable) |
Returns an
ImmutableList formed from this ImmutableCharList and another CharList by
combining corresponding elements in pairs. |
allSatisfy, anySatisfy, asLazy, average, averageIfEmpty, charIterator, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, forEach, injectInto, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedList
binarySearch, dotProduct, equals, get, hashCode, lastIndexOf, toImmutable
collectWithIndex, forEachWithIndex, getFirst, indexOf
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
asReversed, getLast, injectIntoWithIndex
ImmutableCharList select(CharPredicate predicate)
CharIterable
select
in interface CharIterable
select
in interface CharList
select
in interface ImmutableCharCollection
select
in interface OrderedCharIterable
select
in interface ReversibleCharIterable
ImmutableCharList reject(CharPredicate predicate)
CharIterable
reject
in interface CharIterable
reject
in interface CharList
reject
in interface ImmutableCharCollection
reject
in interface OrderedCharIterable
reject
in interface ReversibleCharIterable
default ImmutableCharList tap(CharProcedure procedure)
tap
in interface CharIterable
tap
in interface CharList
tap
in interface ImmutableCharCollection
<V> ImmutableList<V> collect(CharToObjectFunction<? extends V> function)
CharIterable
collect
in interface CharIterable
collect
in interface CharList
collect
in interface ImmutableCharCollection
collect
in interface OrderedCharIterable
collect
in interface ReversibleCharIterable
default <V> ImmutableList<V> collectWithIndex(CharIntToObjectFunction<? extends V> function)
collectWithIndex
in interface CharList
collectWithIndex
in interface OrderedCharIterable
collectWithIndex
in interface ReversibleCharIterable
ImmutableCharList newWith(char element)
newWith
in interface ImmutableCharCollection
ImmutableCharList newWithout(char element)
newWithout
in interface ImmutableCharCollection
ImmutableCharList newWithAll(CharIterable elements)
newWithAll
in interface ImmutableCharCollection
ImmutableCharList newWithoutAll(CharIterable elements)
newWithoutAll
in interface ImmutableCharCollection
ImmutableCharList toReversed()
toReversed
in interface CharList
toReversed
in interface ReversibleCharIterable
ImmutableCharList distinct()
distinct
in interface CharList
distinct
in interface ReversibleCharIterable
ImmutableCharList subList(int fromIndex, int toIndex)
default ImmutableList<CharCharPair> zipChar(CharIterable iterable)
ImmutableList
formed from this ImmutableCharList
and another CharList
by
combining corresponding elements in pairs. If one of the two CharList
s is longer than the other, its
remaining elements are ignored.default <T> ImmutableList<CharObjectPair<T>> zip(java.lang.Iterable<T> iterable)
ImmutableList
formed from this ImmutableCharList
and a ListIterable
by
combining corresponding elements in pairs. If one of the two Lists is longer than the other, its
remaining elements are ignored.Copyright © 2004–2018. All rights reserved.