public class SelectCharIterable extends AbstractLazyCharIterable
| Constructor and Description |
|---|
SelectCharIterable(CharIterable delegate,
CharPredicate predicate) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allSatisfy(CharPredicate predicate) |
boolean |
anySatisfy(CharPredicate predicate) |
double |
average() |
CharIterator |
charIterator() |
boolean |
containsAll(char... source) |
boolean |
containsAll(CharIterable source) |
int |
count(CharPredicate predicate) |
void |
forEach(CharProcedure procedure) |
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 |
noneSatisfy(CharPredicate predicate) |
boolean |
notEmpty()
The English equivalent of !this.isEmpty()
|
int |
size()
Returns the number of items in this iterable.
|
long |
sum() |
char[] |
toArray() |
MutableCharBag |
toBag() |
MutableCharList |
toList() |
MutableCharSet |
toSet() |
char[] |
toSortedArray() |
MutableCharList |
toSortedList() |
appendString, appendString, appendString, asLazy, collect, contains, detectIfNone, injectInto, makeString, makeString, makeString, reject, select, toStringpublic SelectCharIterable(CharIterable delegate, CharPredicate predicate)
public CharIterator charIterator()
public void forEach(CharProcedure procedure)
public 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 int count(CharPredicate predicate)
count in interface CharIterablecount in class AbstractLazyCharIterablepublic boolean anySatisfy(CharPredicate predicate)
anySatisfy in interface CharIterableanySatisfy in class AbstractLazyCharIterablepublic boolean allSatisfy(CharPredicate predicate)
allSatisfy in interface CharIterableallSatisfy in class AbstractLazyCharIterablepublic boolean noneSatisfy(CharPredicate predicate)
noneSatisfy in interface CharIterablenoneSatisfy in class AbstractLazyCharIterablepublic 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 MutableCharList toSortedList()
toSortedList in interface CharIterabletoSortedList in class AbstractLazyCharIterablepublic char[] toArray()
toArray in interface CharIterabletoArray in class AbstractLazyCharIterablepublic boolean containsAll(char... source)
containsAll in interface CharIterablecontainsAll in class AbstractLazyCharIterablepublic boolean containsAll(CharIterable source)
containsAll in interface CharIterablecontainsAll in class AbstractLazyCharIterablepublic MutableCharList toList()
toList in interface CharIterabletoList in class AbstractLazyCharIterablepublic MutableCharSet toSet()
toSet in interface CharIterabletoSet in class AbstractLazyCharIterablepublic MutableCharBag toBag()
toBag in interface CharIterabletoBag in class AbstractLazyCharIterableCopyright © 2004–2017. All rights reserved.