|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.fest.assertions.core.Condition<T>
org.fest.assertions.condition.Join<T>
org.fest.assertions.condition.AllOf<T>
T
- the type of object this condition accepts.public class AllOf<T>
Returns true
if all of the joined conditions is satisfied.
Method Summary | ||
---|---|---|
static
|
allOf(Collection<Condition<T>> conditions)
Creates a new
|
|
static
|
allOf(Condition<T>... conditions)
Creates a new
|
|
boolean |
matches(T value)
Verifies that the given value satisfies this condition. |
|
String |
toString()
|
Methods inherited from class org.fest.assertions.condition.Join |
---|
conditions |
Methods inherited from class org.fest.assertions.core.Condition |
---|
as, as, describedAs, describedAs, description |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static <T> Condition<T> allOf(Condition<T>... conditions)
AllOf
T
- the type of object the given condition accept.conditions
- the conditions to evaluate.
AnyOf
.
NullPointerException
- if the given array is null
.
NullPointerException
- if any of the elements in the given array is null
.public static <T> Condition<T> allOf(Collection<Condition<T>> conditions)
AllOf
T
- the type of object the given condition accept.conditions
- the conditions to evaluate.
AnyOf
.
NullPointerException
- if the given collection is null
.
NullPointerException
- if any of the elements in the given collection is null
.public boolean matches(T value)
matches
in class Condition<T>
value
- the value to verify.
true
if the given value satisfies this condition; false
otherwise.public String toString()
toString
in class Condition<T>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |