CharIterable, LazyCharIterable, PrimitiveIterablepublic class SelectCharIterable extends AbstractLazyCharIterable
| Constructor | Description |
|---|---|
SelectCharIterable(CharIterable delegate,
CharPredicate predicate) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
allSatisfy(CharPredicate predicate) |
Returns true if all of the elements in the CharIterable return true for the
specified predicate, otherwise returns false.
|
boolean |
anySatisfy(CharPredicate predicate) |
Returns true if any of the elements in the CharIterable return true for the
specified predicate, otherwise returns false.
|
CharIterator |
charIterator() |
Returns a primitive iterator that can be used to iterate over the CharIterable in an
imperative style.
|
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.
|
int |
count(CharPredicate predicate) |
Returns a count of the number of elements in the CharIterable that return true for the
specified predicate.
|
void |
each(CharProcedure procedure) |
A synonym for forEach.
|
boolean |
isEmpty() |
Returns true if this iterable has zero items.
|
boolean |
noneSatisfy(CharPredicate predicate) |
Returns true if none of the elements in the CharIterable return true for the
specified predicate, otherwise returns false.
|
boolean |
notEmpty() |
The English equivalent of !this.isEmpty()
|
int |
size() |
Returns the number of items in this iterable.
|
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.
|
appendString, appendString, appendString, asLazy, average, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, detectIfNone, flatCollect, forEach, injectInto, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, reject, select, sum, tap, toSortedArray, toSortedList, toStringaverageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, flatCollect, medianIfEmpty, reduce, reduceIfEmpty, reject, select, summaryStatisticspublic SelectCharIterable(CharIterable delegate, CharPredicate predicate)
public CharIterator charIterator()
CharIterablepublic void each(CharProcedure procedure)
CharIterablepublic 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)
CharIterablecount in interface CharIterablecount in class AbstractLazyCharIterablepublic boolean anySatisfy(CharPredicate predicate)
CharIterableanySatisfy in interface CharIterableanySatisfy in class AbstractLazyCharIterablepublic boolean allSatisfy(CharPredicate predicate)
CharIterableallSatisfy in interface CharIterableallSatisfy in class AbstractLazyCharIterablepublic boolean noneSatisfy(CharPredicate predicate)
CharIterablenoneSatisfy in interface CharIterablenoneSatisfy in class AbstractLazyCharIterablepublic char[] toArray()
CharIterabletoArray in interface CharIterabletoArray 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 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 AbstractLazyCharIterableCopyright © 2004–2020. All rights reserved.