public class LazyBooleanIterableAdapter extends AbstractLazyBooleanIterable
| Constructor and Description |
|---|
LazyBooleanIterableAdapter(BooleanIterable delegate) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allSatisfy(BooleanPredicate predicate) |
boolean |
anySatisfy(BooleanPredicate predicate) |
void |
appendString(Appendable appendable)
Prints a string representation of this collection onto the given
Appendable. |
void |
appendString(Appendable appendable,
String separator)
Prints a string representation of this collection onto the given
Appendable. |
void |
appendString(Appendable appendable,
String start,
String separator,
String end)
Prints a string representation of this collection onto the given
Appendable. |
BooleanIterator |
booleanIterator() |
boolean |
contains(boolean value) |
boolean |
containsAll(boolean... source) |
boolean |
containsAll(BooleanIterable source) |
int |
count(BooleanPredicate predicate) |
boolean |
detectIfNone(BooleanPredicate predicate,
boolean ifNone) |
void |
each(BooleanProcedure procedure) |
<T> T |
injectInto(T injectedValue,
ObjectBooleanToObjectFunction<? super T,? extends T> function) |
boolean |
isEmpty()
Returns true if this iterable has zero items.
|
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). |
String |
makeString(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). |
String |
makeString(String start,
String separator,
String end)
Returns a string representation of this collection.
|
boolean |
noneSatisfy(BooleanPredicate predicate) |
boolean |
notEmpty()
The English equivalent of !this.isEmpty()
|
int |
size()
Returns the number of items in this iterable.
|
boolean[] |
toArray() |
MutableBooleanBag |
toBag() |
MutableBooleanList |
toList() |
MutableBooleanSet |
toSet() |
String |
toString()
Returns a string representation of this PrimitiveIterable.
|
asLazy, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, forEach, reject, selectpublic LazyBooleanIterableAdapter(BooleanIterable delegate)
public BooleanIterator booleanIterator()
public void each(BooleanProcedure procedure)
public int size()
PrimitiveIterablesize in interface PrimitiveIterablesize in class AbstractLazyBooleanIterablepublic boolean isEmpty()
PrimitiveIterableisEmpty in interface PrimitiveIterableisEmpty in class AbstractLazyBooleanIterablepublic boolean notEmpty()
PrimitiveIterablenotEmpty in interface PrimitiveIterablenotEmpty in class AbstractLazyBooleanIterablepublic int count(BooleanPredicate predicate)
count in interface BooleanIterablecount in class AbstractLazyBooleanIterablepublic boolean anySatisfy(BooleanPredicate predicate)
anySatisfy in interface BooleanIterableanySatisfy in class AbstractLazyBooleanIterablepublic boolean allSatisfy(BooleanPredicate predicate)
allSatisfy in interface BooleanIterableallSatisfy in class AbstractLazyBooleanIterablepublic boolean noneSatisfy(BooleanPredicate predicate)
noneSatisfy in interface BooleanIterablenoneSatisfy in class AbstractLazyBooleanIterablepublic boolean detectIfNone(BooleanPredicate predicate, boolean ifNone)
detectIfNone in interface BooleanIterabledetectIfNone in class AbstractLazyBooleanIterablepublic boolean[] toArray()
toArray in interface BooleanIterabletoArray in class AbstractLazyBooleanIterablepublic String toString()
PrimitiveIterabletoString in interface PrimitiveIterabletoString in class AbstractLazyBooleanIterablepublic String makeString()
PrimitiveIterablePrimitiveIterable.makeString(String) and defaulting
the separator parameter to the characters ", " (comma and space).makeString in interface PrimitiveIterablemakeString in class AbstractLazyBooleanIterablepublic String makeString(String separator)
PrimitiveIterablePrimitiveIterable.makeString(String, String, String)
and defaulting the start and end parameters to "" (the empty String).makeString in interface PrimitiveIterablemakeString in class AbstractLazyBooleanIterablepublic String makeString(String start, String separator, String end)
PrimitiveIterablemakeString in interface PrimitiveIterablemakeString in class AbstractLazyBooleanIterablepublic void appendString(Appendable appendable)
PrimitiveIterableAppendable. Prints the string returned
by PrimitiveIterable.makeString().appendString in interface PrimitiveIterableappendString in class AbstractLazyBooleanIterablepublic void appendString(Appendable appendable, String separator)
PrimitiveIterableAppendable. Prints the string returned
by PrimitiveIterable.makeString(String).appendString in interface PrimitiveIterableappendString in class AbstractLazyBooleanIterablepublic void appendString(Appendable appendable, String start, String separator, String end)
PrimitiveIterableAppendable. Prints the string returned
by PrimitiveIterable.makeString(String, String, String).appendString in interface PrimitiveIterableappendString in class AbstractLazyBooleanIterablepublic boolean contains(boolean value)
contains in interface BooleanIterablecontains in class AbstractLazyBooleanIterablepublic boolean containsAll(boolean... source)
containsAll in interface BooleanIterablecontainsAll in class AbstractLazyBooleanIterablepublic boolean containsAll(BooleanIterable source)
containsAll in interface BooleanIterablecontainsAll in class AbstractLazyBooleanIterablepublic MutableBooleanList toList()
toList in interface BooleanIterabletoList in class AbstractLazyBooleanIterablepublic MutableBooleanSet toSet()
toSet in interface BooleanIterabletoSet in class AbstractLazyBooleanIterablepublic MutableBooleanBag toBag()
toBag in interface BooleanIterabletoBag in class AbstractLazyBooleanIterablepublic <T> T injectInto(T injectedValue,
ObjectBooleanToObjectFunction<? super T,? extends T> function)
injectInto in interface BooleanIterableinjectInto in class AbstractLazyBooleanIterableCopyright © 2004–2016. All rights reserved.