public interface CharList extends ReversibleCharIterable
| Modifier and Type | Method and 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. |
asReversed, getLast, injectIntoWithIndexcollectWithIndex, forEachWithIndex, getFirst, indexOfallSatisfy, 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, toArray, toBag, toList, toSet, toSortedArray, toSortedListappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringchar get(int index)
long dotProduct(CharList list)
int binarySearch(char value)
int lastIndexOf(char value)
CharList select(CharPredicate predicate)
CharIterableselect in interface CharIterableselect in interface OrderedCharIterableselect in interface ReversibleCharIterableCharList reject(CharPredicate predicate)
CharIterablereject in interface CharIterablereject in interface OrderedCharIterablereject in interface ReversibleCharIterabledefault CharList tap(CharProcedure procedure)
tap in interface CharIterable<V> ListIterable<V> collect(CharToObjectFunction<? extends V> function)
CharIterablecollect in interface CharIterablecollect in interface OrderedCharIterablecollect in interface ReversibleCharIterabledefault <V> ListIterable<V> collectWithIndex(CharIntToObjectFunction<? extends V> function)
collectWithIndex in interface OrderedCharIterablecollectWithIndex in interface ReversibleCharIterableboolean equals(Object o)
List.equals(Object).int hashCode()
List.hashCode().ImmutableCharList toImmutable()
CharList distinct()
distinct in interface ReversibleCharIterableCharList toReversed()
toReversed in interface ReversibleCharIterableCharList 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 CharLists 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–2020. All rights reserved.