|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.javagl.swogl.Conditions
public class Conditions
This class contains utility methods for creating
Conditions
Method Summary | ||
---|---|---|
static
|
and(Condition<T> c0,
Condition<T> c1)
Returns a new Condition that is the conjunction of the given
conditions. |
|
static
|
falseCondition()
Returns a new Condition that is always false |
|
static
|
not(Condition<T> condition)
Returns a new Condition that is the negation of the given
condition. |
|
static
|
or(Condition<T> c0,
Condition<T> c1)
Returns a new Condition that is the disjunction of the given
conditions. |
|
static
|
trueCondition()
Returns a new Condition that is always true |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static <T> Condition<T> trueCondition()
Condition
that is always true
T
- The type of the objects for the condition
public static <T> Condition<T> falseCondition()
Condition
that is always false
T
- The type of the objects for the condition
public static <T> Condition<T> not(Condition<T> condition)
Condition
that is the negation of the given
condition.
T
- The type of the objects for the conditioncondition
- The condition to negate
public static <T> Condition<T> and(Condition<T> c0, Condition<T> c1)
Condition
that is the conjunction of the given
conditions.
T
- The type of the objects for the conditionc0
- The first conditionc1
- The second condition
public static <T> Condition<T> or(Condition<T> c0, Condition<T> c1)
Condition
that is the disjunction of the given
conditions.
T
- The type of the objects for the conditionc0
- The first conditionc1
- The second condition
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |