CharIterable
, LazyCharIterable
, PrimitiveIterable
public class CollectCharIterable<T> extends AbstractLazyCharIterable
Constructor | Description |
---|---|
CollectCharIterable(LazyIterable<T> adapted,
CharFunction<? super T> function) |
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.
|
void |
forEach(CharProcedure procedure) |
Applies the CharProcedure to each element in the CharIterable.
|
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.
|
char[] |
toSortedArray() |
appendString, appendString, appendString, asLazy, average, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, detectIfNone, flatCollect, injectInto, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, reject, select, sum, tap, toSortedList, toString
averageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, flatCollect, medianIfEmpty, reject, select, summaryStatistics
public CollectCharIterable(LazyIterable<T> adapted, CharFunction<? super T> function)
public CharIterator charIterator()
CharIterable
public void forEach(CharProcedure procedure)
CharIterable
forEach
in interface CharIterable
forEach
in class AbstractLazyCharIterable
public void each(CharProcedure procedure)
CharIterable
public int size()
PrimitiveIterable
size
in interface PrimitiveIterable
size
in class AbstractLazyCharIterable
public boolean isEmpty()
PrimitiveIterable
isEmpty
in interface PrimitiveIterable
isEmpty
in class AbstractLazyCharIterable
public boolean notEmpty()
PrimitiveIterable
notEmpty
in interface PrimitiveIterable
notEmpty
in class AbstractLazyCharIterable
public int count(CharPredicate predicate)
CharIterable
count
in interface CharIterable
count
in class AbstractLazyCharIterable
public boolean anySatisfy(CharPredicate predicate)
CharIterable
anySatisfy
in interface CharIterable
anySatisfy
in class AbstractLazyCharIterable
public boolean allSatisfy(CharPredicate predicate)
CharIterable
allSatisfy
in interface CharIterable
allSatisfy
in class AbstractLazyCharIterable
public boolean noneSatisfy(CharPredicate predicate)
CharIterable
noneSatisfy
in interface CharIterable
noneSatisfy
in class AbstractLazyCharIterable
public char[] toArray()
CharIterable
toArray
in interface CharIterable
toArray
in class AbstractLazyCharIterable
public char[] toSortedArray()
toSortedArray
in interface CharIterable
toSortedArray
in class AbstractLazyCharIterable
public MutableCharList toList()
CharIterable
toList
in interface CharIterable
toList
in class AbstractLazyCharIterable
public MutableCharSet toSet()
CharIterable
toSet
in interface CharIterable
toSet
in class AbstractLazyCharIterable
public MutableCharBag toBag()
CharIterable
toBag
in interface CharIterable
toBag
in class AbstractLazyCharIterable
public boolean containsAll(char... source)
CharIterable
containsAll
in interface CharIterable
containsAll
in class AbstractLazyCharIterable
public boolean containsAll(CharIterable source)
CharIterable
containsAll
in interface CharIterable
containsAll
in class AbstractLazyCharIterable
Copyright © 2004–2017. All rights reserved.