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, select
public LazyBooleanIterableAdapter(BooleanIterable delegate)
public BooleanIterator booleanIterator()
public void each(BooleanProcedure procedure)
public int size()
PrimitiveIterable
size
in interface PrimitiveIterable
size
in class AbstractLazyBooleanIterable
public boolean isEmpty()
PrimitiveIterable
isEmpty
in interface PrimitiveIterable
isEmpty
in class AbstractLazyBooleanIterable
public boolean notEmpty()
PrimitiveIterable
notEmpty
in interface PrimitiveIterable
notEmpty
in class AbstractLazyBooleanIterable
public int count(BooleanPredicate predicate)
count
in interface BooleanIterable
count
in class AbstractLazyBooleanIterable
public boolean anySatisfy(BooleanPredicate predicate)
anySatisfy
in interface BooleanIterable
anySatisfy
in class AbstractLazyBooleanIterable
public boolean allSatisfy(BooleanPredicate predicate)
allSatisfy
in interface BooleanIterable
allSatisfy
in class AbstractLazyBooleanIterable
public boolean noneSatisfy(BooleanPredicate predicate)
noneSatisfy
in interface BooleanIterable
noneSatisfy
in class AbstractLazyBooleanIterable
public boolean detectIfNone(BooleanPredicate predicate, boolean ifNone)
detectIfNone
in interface BooleanIterable
detectIfNone
in class AbstractLazyBooleanIterable
public boolean[] toArray()
toArray
in interface BooleanIterable
toArray
in class AbstractLazyBooleanIterable
public String toString()
PrimitiveIterable
toString
in interface PrimitiveIterable
toString
in class AbstractLazyBooleanIterable
public String makeString()
PrimitiveIterable
PrimitiveIterable.makeString(String)
and defaulting
the separator parameter to the characters ", " (comma and space).makeString
in interface PrimitiveIterable
makeString
in class AbstractLazyBooleanIterable
public String makeString(String separator)
PrimitiveIterable
PrimitiveIterable.makeString(String, String, String)
and defaulting the start and end parameters to "" (the empty String).makeString
in interface PrimitiveIterable
makeString
in class AbstractLazyBooleanIterable
public String makeString(String start, String separator, String end)
PrimitiveIterable
makeString
in interface PrimitiveIterable
makeString
in class AbstractLazyBooleanIterable
public void appendString(Appendable appendable)
PrimitiveIterable
Appendable
. Prints the string returned
by PrimitiveIterable.makeString()
.appendString
in interface PrimitiveIterable
appendString
in class AbstractLazyBooleanIterable
public void appendString(Appendable appendable, String separator)
PrimitiveIterable
Appendable
. Prints the string returned
by PrimitiveIterable.makeString(String)
.appendString
in interface PrimitiveIterable
appendString
in class AbstractLazyBooleanIterable
public void appendString(Appendable appendable, String start, String separator, String end)
PrimitiveIterable
Appendable
. Prints the string returned
by PrimitiveIterable.makeString(String, String, String)
.appendString
in interface PrimitiveIterable
appendString
in class AbstractLazyBooleanIterable
public boolean contains(boolean value)
contains
in interface BooleanIterable
contains
in class AbstractLazyBooleanIterable
public boolean containsAll(boolean... source)
containsAll
in interface BooleanIterable
containsAll
in class AbstractLazyBooleanIterable
public boolean containsAll(BooleanIterable source)
containsAll
in interface BooleanIterable
containsAll
in class AbstractLazyBooleanIterable
public MutableBooleanList toList()
toList
in interface BooleanIterable
toList
in class AbstractLazyBooleanIterable
public MutableBooleanSet toSet()
toSet
in interface BooleanIterable
toSet
in class AbstractLazyBooleanIterable
public MutableBooleanBag toBag()
toBag
in interface BooleanIterable
toBag
in class AbstractLazyBooleanIterable
public <T> T injectInto(T injectedValue, ObjectBooleanToObjectFunction<? super T,? extends T> function)
injectInto
in interface BooleanIterable
injectInto
in class AbstractLazyBooleanIterable
Copyright © 2004–2016. All rights reserved.