CharIterable, LazyCharIterable, PrimitiveIterablepublic class ReverseCharIterable extends AbstractLazyCharIterable
ReverseIterable| Constructor | Description |
|---|---|
ReverseCharIterable(CharList newAdapted) |
| Modifier and Type | Method | Description |
|---|---|---|
static ReverseCharIterable |
adapt(CharList charList) |
|
LazyCharIterable |
asLazy() |
Returns a LazyCharIterable adapter wrapping the source CharIterable.
|
double |
average() |
|
CharIterator |
charIterator() |
Returns a primitive iterator that can be used to iterate over the CharIterable in an
imperative style.
|
boolean |
contains(char value) |
Returns true if the value is contained in the CharIterable, and false if it is not.
|
boolean |
containsAll(char... source) |
Returns true if the all of the values specified in the source array are contained
in the CharIterable, and false if they are not.
|
boolean |
containsAll(CharIterable source) |
Returns true if the all of the values specified in the source CharIterable are contained
in the CharIterable, and false if they are not.
|
void |
each(CharProcedure procedure) |
A synonym for forEach.
|
boolean |
isEmpty() |
Returns true if this iterable has zero items.
|
char |
max() |
|
char |
maxIfEmpty(char defaultValue) |
|
double |
median() |
|
char |
min() |
|
char |
minIfEmpty(char defaultValue) |
|
boolean |
notEmpty() |
The English equivalent of !this.isEmpty()
|
int |
size() |
Returns the number of items in this iterable.
|
long |
sum() |
|
char[] |
toArray() |
Converts the CharIterable to a primitive char array.
|
MutableCharBag |
toBag() |
Converts the CharIterable to a new MutableCharBag.
|
MutableCharList |
toList() |
Converts the CharIterable to a new MutableCharList.
|
MutableCharSet |
toSet() |
Converts the CharIterable to a new MutableCharSet.
|
char[] |
toSortedArray() |
allSatisfy, anySatisfy, appendString, appendString, appendString, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, count, detectIfNone, flatCollect, forEach, injectInto, makeString, makeString, makeString, noneSatisfy, reject, select, tap, toSortedList, toStringaverageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, flatCollect, medianIfEmpty, reduce, reduceIfEmpty, reject, select, summaryStatisticspublic ReverseCharIterable(CharList newAdapted)
public static ReverseCharIterable adapt(CharList charList)
public CharIterator charIterator()
CharIterablepublic void each(CharProcedure procedure)
CharIterablepublic long sum()
sum in interface CharIterablesum in class AbstractLazyCharIterablepublic char max()
max in interface CharIterablemax in class AbstractLazyCharIterablepublic char min()
min in interface CharIterablemin in class AbstractLazyCharIterablepublic char minIfEmpty(char defaultValue)
minIfEmpty in interface CharIterableminIfEmpty in class AbstractLazyCharIterablepublic char maxIfEmpty(char defaultValue)
maxIfEmpty in interface CharIterablemaxIfEmpty in class AbstractLazyCharIterablepublic double average()
average in interface CharIterableaverage in class AbstractLazyCharIterablepublic double median()
median in interface CharIterablemedian in class AbstractLazyCharIterablepublic char[] toSortedArray()
toSortedArray in interface CharIterabletoSortedArray in class AbstractLazyCharIterablepublic char[] toArray()
CharIterabletoArray in interface CharIterabletoArray in class AbstractLazyCharIterablepublic boolean contains(char value)
CharIterablecontains in interface CharIterablecontains in class AbstractLazyCharIterablepublic boolean containsAll(char... source)
CharIterablecontainsAll in interface CharIterablecontainsAll in class AbstractLazyCharIterablepublic boolean containsAll(CharIterable source)
CharIterablecontainsAll in interface CharIterablecontainsAll in class AbstractLazyCharIterablepublic int size()
PrimitiveIterablesize in interface PrimitiveIterablesize in class AbstractLazyCharIterablepublic boolean isEmpty()
PrimitiveIterableisEmpty in interface PrimitiveIterableisEmpty in class AbstractLazyCharIterablepublic boolean notEmpty()
PrimitiveIterablenotEmpty in interface PrimitiveIterablenotEmpty in class AbstractLazyCharIterablepublic MutableCharList toList()
CharIterabletoList in interface CharIterabletoList in class AbstractLazyCharIterablepublic MutableCharSet toSet()
CharIterabletoSet in interface CharIterabletoSet in class AbstractLazyCharIterablepublic MutableCharBag toBag()
CharIterabletoBag in interface CharIterabletoBag in class AbstractLazyCharIterablepublic LazyCharIterable asLazy()
CharIterableasLazy in interface CharIterableasLazy in class AbstractLazyCharIterableCopyright © 2004–2020. All rights reserved.