CharIterable
, OrderedCharIterable
, PrimitiveIterable
, ReversibleCharIterable
ImmutableCharList
, MutableCharList
CharAdapter
, CharArrayList
, SynchronizedCharList
, UnmodifiableCharList
public interface CharList extends ReversibleCharIterable
Modifier and Type | Method | Description |
---|---|---|
int |
binarySearch(char value) |
|
<V> ListIterable<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> ListIterable<V> |
collectWithIndex(CharIntToObjectFunction<? extends V> function) |
Returns a new ListIterable using results obtained by applying the specified function to each element
and its corresponding index.
|
CharList |
distinct() |
|
long |
dotProduct(CharList list) |
|
boolean |
equals(Object o) |
Follows the same general contract as
List.equals(Object) . |
char |
get(int index) |
|
int |
hashCode() |
Follows the same general contract as
List.hashCode() . |
int |
lastIndexOf(char value) |
|
CharList |
reject(CharPredicate predicate) |
Returns a new CharIterable with all of the elements in the CharIterable that
return false for the specified predicate.
|
CharList |
select(CharPredicate predicate) |
Returns a new CharIterable with all of the elements in the CharIterable that
return true for the specified predicate.
|
CharList |
subList(int fromIndex,
int toIndex) |
|
default CharList |
tap(CharProcedure procedure) |
|
ImmutableCharList |
toImmutable() |
Returns an immutable copy of this list.
|
CharList |
toReversed() |
|
default <T> ListIterable<CharObjectPair<T>> |
zip(Iterable<T> iterable) |
Returns a
ListIterable formed from this CharList and a ListIterable by
combining corresponding elements in pairs. |
default ListIterable<CharCharPair> |
zipChar(CharIterable iterable) |
Returns a
ListIterable formed from this CharList 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, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedList
collectWithIndex, forEachWithIndex, getFirst, indexOf
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
asReversed, getLast, injectIntoWithIndex
char get(int index)
long dotProduct(CharList list)
int binarySearch(char value)
int lastIndexOf(char value)
CharList select(CharPredicate predicate)
CharIterable
select
in interface CharIterable
select
in interface OrderedCharIterable
select
in interface ReversibleCharIterable
CharList reject(CharPredicate predicate)
CharIterable
reject
in interface CharIterable
reject
in interface OrderedCharIterable
reject
in interface ReversibleCharIterable
default CharList tap(CharProcedure procedure)
tap
in interface CharIterable
<V> ListIterable<V> collect(CharToObjectFunction<? extends V> function)
CharIterable
collect
in interface CharIterable
collect
in interface OrderedCharIterable
collect
in interface ReversibleCharIterable
default <V> ListIterable<V> collectWithIndex(CharIntToObjectFunction<? extends V> function)
collectWithIndex
in interface OrderedCharIterable
collectWithIndex
in interface ReversibleCharIterable
boolean equals(Object o)
List.equals(Object)
.int hashCode()
List.hashCode()
.ImmutableCharList toImmutable()
CharList distinct()
distinct
in interface ReversibleCharIterable
CharList toReversed()
toReversed
in interface ReversibleCharIterable
CharList subList(int fromIndex, int toIndex)
List.subList(int fromIndex, int toIndex)
default ListIterable<CharCharPair> zipChar(CharIterable iterable)
ListIterable
formed from this CharList
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> ListIterable<CharObjectPair<T>> zip(Iterable<T> iterable)
ListIterable
formed from this CharList
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–2019. All rights reserved.