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.
|
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) |
|
ImmutableCharList |
toImmutable() |
Returns an immutable copy of this list.
|
CharList |
toReversed() |
allSatisfy, anySatisfy, asLazy, average, charIterator, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, forEach, injectInto, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedList
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
<V> ListIterable<V> collect(CharToObjectFunction<? extends V> function)
CharIterable
collect
in interface CharIterable
collect
in interface OrderedCharIterable
collect
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)
Copyright © 2004–2017. All rights reserved.