|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.googlecode.objectify.condition.ValueIf<T>
public abstract class ValueIf<T>
Base class for If classes that test against a simple value. This is the most common case; IfNull, IfFalse, IfDefault, etc.
All concrete instances of this interface must have either a no-arg constructor
or a constructor that takes Class<?>, Field
parameters.
Constructor Summary | |
---|---|
ValueIf()
|
Method Summary | |
---|---|
abstract boolean |
matches(T value)
Override this method to test a field value for your condition. |
boolean |
matches(T value,
java.lang.Object onPojo)
Test a value (for a field) and/or an entity. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ValueIf()
Method Detail |
---|
public abstract boolean matches(T value)
public final boolean matches(T value, java.lang.Object onPojo)
If
matches
in interface If<T,java.lang.Object>
value
- is the actual value of a particular fieldonPojo
- is the entity object on which the field/value exists
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |