|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.maryanovsky.gwtutils.client.Condition<T>
public abstract class Condition<T>
A boolean condition.
| Constructor Summary | |
|---|---|
Condition()
|
|
| Method Summary | ||
|---|---|---|
Condition<T> |
and(Condition<? super T> cond)
Returns the logical-AND of this condition and the specified one. |
|
static
|
and(Condition<? super T> cond1,
Condition<? super T> cond2)
Returns the logical-AND of the specified conditions. |
|
static
|
and(Condition<? super T> cond1,
Condition<? super T> cond2,
Condition<? super T> cond3)
Returns the logical-AND of the specified conditions. |
|
static
|
and(Condition<? super T> cond1,
Condition<? super T> cond2,
Condition<? super T> cond3,
Condition<? super T> cond4)
Returns the logical-AND of the specified conditions. |
|
|
cast()
Casts this condition to a condition parameterized with a subtype of T. |
|
static
|
cast(Condition<? super T> condition)
Casts a condition parameterized with a supertype of T to a condition parameterized with T. |
|
abstract boolean |
eval(T argument)
Returns the value of the condition based on the specified argument. |
|
static
|
falsehood()
The always-false condition. |
|
Condition<T> |
not()
Returns the logical inverse of this condition. |
|
static
|
not(Condition<? super T> condition)
Returns the logical inverse of the specified condition. |
|
Condition<T> |
or(Condition<? super T> cond)
Returns the logical-OR of this condition and the specified one. |
|
static
|
or(Condition<? super T> cond1,
Condition<? super T> cond2)
Returns the logical-OR of the specified conditions. |
|
static
|
or(Condition<? super T> cond1,
Condition<? super T> cond2,
Condition<? super T> cond3)
Returns the logical-OR of the specified conditions. |
|
static
|
or(Condition<? super T> cond1,
Condition<? super T> cond2,
Condition<? super T> cond3,
Condition<? super T> cond4)
Returns the logical-OR of the specified conditions. |
|
static
|
truth()
The always-true condition. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Condition()
| Method Detail |
|---|
public static <T> Condition<T> truth()
public static <T> Condition<T> falsehood()
public Condition<T> and(Condition<? super T> cond)
public static <T> Condition<T> and(Condition<? super T> cond1,
Condition<? super T> cond2)
public static <T> Condition<T> and(Condition<? super T> cond1,
Condition<? super T> cond2,
Condition<? super T> cond3)
public static <T> Condition<T> and(Condition<? super T> cond1,
Condition<? super T> cond2,
Condition<? super T> cond3,
Condition<? super T> cond4)
public Condition<T> or(Condition<? super T> cond)
public static <T> Condition<T> or(Condition<? super T> cond1,
Condition<? super T> cond2)
public static <T> Condition<T> or(Condition<? super T> cond1,
Condition<? super T> cond2,
Condition<? super T> cond3)
public static <T> Condition<T> or(Condition<? super T> cond1,
Condition<? super T> cond2,
Condition<? super T> cond3,
Condition<? super T> cond4)
public Condition<T> not()
public static <T> Condition<T> not(Condition<? super T> condition)
public static <T> Condition<T> cast(Condition<? super T> condition)
public <S extends T> Condition<S> cast()
public abstract boolean eval(T argument)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||