public class LazyCharIterableAdapter extends AbstractLazyCharIterable
| Constructor and Description |
|---|
LazyCharIterableAdapter(com.gs.collections.api.CharIterable delegate) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allSatisfy(com.gs.collections.api.block.predicate.primitive.CharPredicate predicate) |
boolean |
anySatisfy(com.gs.collections.api.block.predicate.primitive.CharPredicate predicate) |
void |
appendString(java.lang.Appendable appendable)
Prints a string representation of this collection onto the given
Appendable. |
void |
appendString(java.lang.Appendable appendable,
java.lang.String separator)
Prints a string representation of this collection onto the given
Appendable. |
void |
appendString(java.lang.Appendable appendable,
java.lang.String start,
java.lang.String separator,
java.lang.String end)
Prints a string representation of this collection onto the given
Appendable. |
double |
average() |
com.gs.collections.api.iterator.CharIterator |
charIterator() |
<V> com.gs.collections.api.LazyIterable<V> |
collect(com.gs.collections.api.block.function.primitive.CharToObjectFunction<? extends V> function) |
boolean |
contains(char value) |
boolean |
containsAll(char... source) |
boolean |
containsAll(com.gs.collections.api.CharIterable source) |
int |
count(com.gs.collections.api.block.predicate.primitive.CharPredicate predicate) |
char |
detectIfNone(com.gs.collections.api.block.predicate.primitive.CharPredicate predicate,
char ifNone) |
void |
forEach(com.gs.collections.api.block.procedure.primitive.CharProcedure procedure) |
<T> T |
injectInto(T injectedValue,
com.gs.collections.api.block.function.primitive.ObjectCharToObjectFunction<? super T,? extends T> function) |
boolean |
isEmpty()
Returns true if this iterable has zero items.
|
java.lang.String |
makeString()
Returns a string representation of this collection by delegating to
PrimitiveIterable.makeString(String) and defaulting
the separator parameter to the characters ", " (comma and space). |
java.lang.String |
makeString(java.lang.String separator)
Returns a string representation of this collection by delegating to
PrimitiveIterable.makeString(String, String, String)
and defaulting the start and end parameters to "" (the empty String). |
java.lang.String |
makeString(java.lang.String start,
java.lang.String separator,
java.lang.String end)
Returns a string representation of this collection.
|
char |
max() |
char |
maxIfEmpty(char defaultValue) |
double |
median() |
char |
min() |
char |
minIfEmpty(char defaultValue) |
boolean |
noneSatisfy(com.gs.collections.api.block.predicate.primitive.CharPredicate predicate) |
boolean |
notEmpty()
The English equivalent of !this.isEmpty()
|
com.gs.collections.api.LazyCharIterable |
reject(com.gs.collections.api.block.predicate.primitive.CharPredicate predicate) |
com.gs.collections.api.LazyCharIterable |
select(com.gs.collections.api.block.predicate.primitive.CharPredicate predicate) |
int |
size()
Returns the number of items in this iterable.
|
long |
sum() |
char[] |
toArray() |
com.gs.collections.api.bag.primitive.MutableCharBag |
toBag() |
com.gs.collections.api.list.primitive.MutableCharList |
toList() |
com.gs.collections.api.set.primitive.MutableCharSet |
toSet() |
char[] |
toSortedArray() |
com.gs.collections.api.list.primitive.MutableCharList |
toSortedList() |
java.lang.String |
toString()
Returns a string representation of this PrimitiveIterable.
|
asLazypublic LazyCharIterableAdapter(com.gs.collections.api.CharIterable delegate)
public com.gs.collections.api.iterator.CharIterator charIterator()
public void forEach(com.gs.collections.api.block.procedure.primitive.CharProcedure procedure)
public int size()
com.gs.collections.api.PrimitiveIterablesize in interface com.gs.collections.api.PrimitiveIterablesize in class AbstractLazyCharIterablepublic boolean isEmpty()
com.gs.collections.api.PrimitiveIterableisEmpty in interface com.gs.collections.api.PrimitiveIterableisEmpty in class AbstractLazyCharIterablepublic boolean notEmpty()
com.gs.collections.api.PrimitiveIterablenotEmpty in interface com.gs.collections.api.PrimitiveIterablenotEmpty in class AbstractLazyCharIterablepublic int count(com.gs.collections.api.block.predicate.primitive.CharPredicate predicate)
count in interface com.gs.collections.api.CharIterablecount in class AbstractLazyCharIterablepublic boolean anySatisfy(com.gs.collections.api.block.predicate.primitive.CharPredicate predicate)
anySatisfy in interface com.gs.collections.api.CharIterableanySatisfy in class AbstractLazyCharIterablepublic boolean allSatisfy(com.gs.collections.api.block.predicate.primitive.CharPredicate predicate)
allSatisfy in interface com.gs.collections.api.CharIterableallSatisfy in class AbstractLazyCharIterablepublic boolean noneSatisfy(com.gs.collections.api.block.predicate.primitive.CharPredicate predicate)
noneSatisfy in interface com.gs.collections.api.CharIterablenoneSatisfy in class AbstractLazyCharIterablepublic com.gs.collections.api.LazyCharIterable select(com.gs.collections.api.block.predicate.primitive.CharPredicate predicate)
select in interface com.gs.collections.api.CharIterableselect in interface com.gs.collections.api.LazyCharIterableselect in class AbstractLazyCharIterablepublic com.gs.collections.api.LazyCharIterable reject(com.gs.collections.api.block.predicate.primitive.CharPredicate predicate)
reject in interface com.gs.collections.api.CharIterablereject in interface com.gs.collections.api.LazyCharIterablereject in class AbstractLazyCharIterablepublic char detectIfNone(com.gs.collections.api.block.predicate.primitive.CharPredicate predicate,
char ifNone)
detectIfNone in interface com.gs.collections.api.CharIterabledetectIfNone in class AbstractLazyCharIterablepublic <V> com.gs.collections.api.LazyIterable<V> collect(com.gs.collections.api.block.function.primitive.CharToObjectFunction<? extends V> function)
collect in interface com.gs.collections.api.CharIterablecollect in interface com.gs.collections.api.LazyCharIterablecollect in class AbstractLazyCharIterablepublic long sum()
sum in interface com.gs.collections.api.CharIterablesum in class AbstractLazyCharIterablepublic char max()
max in interface com.gs.collections.api.CharIterablemax in class AbstractLazyCharIterablepublic char min()
min in interface com.gs.collections.api.CharIterablemin in class AbstractLazyCharIterablepublic char minIfEmpty(char defaultValue)
minIfEmpty in interface com.gs.collections.api.CharIterableminIfEmpty in class AbstractLazyCharIterablepublic char maxIfEmpty(char defaultValue)
maxIfEmpty in interface com.gs.collections.api.CharIterablemaxIfEmpty in class AbstractLazyCharIterablepublic double average()
average in interface com.gs.collections.api.CharIterableaverage in class AbstractLazyCharIterablepublic double median()
median in interface com.gs.collections.api.CharIterablemedian in class AbstractLazyCharIterablepublic char[] toSortedArray()
toSortedArray in interface com.gs.collections.api.CharIterabletoSortedArray in class AbstractLazyCharIterablepublic com.gs.collections.api.list.primitive.MutableCharList toSortedList()
toSortedList in interface com.gs.collections.api.CharIterabletoSortedList in class AbstractLazyCharIterablepublic char[] toArray()
toArray in interface com.gs.collections.api.CharIterabletoArray in class AbstractLazyCharIterablepublic java.lang.String toString()
com.gs.collections.api.PrimitiveIterabletoString in interface com.gs.collections.api.PrimitiveIterabletoString in class AbstractLazyCharIterablepublic java.lang.String makeString()
com.gs.collections.api.PrimitiveIterablePrimitiveIterable.makeString(String) and defaulting
the separator parameter to the characters ", " (comma and space).makeString in interface com.gs.collections.api.PrimitiveIterablemakeString in class AbstractLazyCharIterablepublic java.lang.String makeString(java.lang.String separator)
com.gs.collections.api.PrimitiveIterablePrimitiveIterable.makeString(String, String, String)
and defaulting the start and end parameters to "" (the empty String).makeString in interface com.gs.collections.api.PrimitiveIterablemakeString in class AbstractLazyCharIterablepublic java.lang.String makeString(java.lang.String start,
java.lang.String separator,
java.lang.String end)
com.gs.collections.api.PrimitiveIterablemakeString in interface com.gs.collections.api.PrimitiveIterablemakeString in class AbstractLazyCharIterablepublic void appendString(java.lang.Appendable appendable)
com.gs.collections.api.PrimitiveIterableAppendable. Prints the string returned
by PrimitiveIterable.makeString().appendString in interface com.gs.collections.api.PrimitiveIterableappendString in class AbstractLazyCharIterablepublic void appendString(java.lang.Appendable appendable,
java.lang.String separator)
com.gs.collections.api.PrimitiveIterableAppendable. Prints the string returned
by PrimitiveIterable.makeString(String).appendString in interface com.gs.collections.api.PrimitiveIterableappendString in class AbstractLazyCharIterablepublic void appendString(java.lang.Appendable appendable,
java.lang.String start,
java.lang.String separator,
java.lang.String end)
com.gs.collections.api.PrimitiveIterableAppendable. Prints the string returned
by PrimitiveIterable.makeString(String, String, String).appendString in interface com.gs.collections.api.PrimitiveIterableappendString in class AbstractLazyCharIterablepublic boolean contains(char value)
contains in interface com.gs.collections.api.CharIterablecontains in class AbstractLazyCharIterablepublic boolean containsAll(char... source)
containsAll in interface com.gs.collections.api.CharIterablecontainsAll in class AbstractLazyCharIterablepublic boolean containsAll(com.gs.collections.api.CharIterable source)
containsAll in interface com.gs.collections.api.CharIterablecontainsAll in class AbstractLazyCharIterablepublic com.gs.collections.api.list.primitive.MutableCharList toList()
toList in interface com.gs.collections.api.CharIterabletoList in class AbstractLazyCharIterablepublic com.gs.collections.api.set.primitive.MutableCharSet toSet()
toSet in interface com.gs.collections.api.CharIterabletoSet in class AbstractLazyCharIterablepublic com.gs.collections.api.bag.primitive.MutableCharBag toBag()
toBag in interface com.gs.collections.api.CharIterabletoBag in class AbstractLazyCharIterablepublic <T> T injectInto(T injectedValue,
com.gs.collections.api.block.function.primitive.ObjectCharToObjectFunction<? super T,? extends T> function)
injectInto in interface com.gs.collections.api.CharIterableinjectInto in class AbstractLazyCharIterable