Class ValueIf<V>
java.lang.Object
com.googlecode.objectify.condition.ValueIf<V>
- Direct Known Subclasses:
IfDefault
,IfEmpty
,IfEmptyString
,IfFalse
,IfNotDefault
,IfNotEmpty
,IfNotNull
,IfNotZero
,IfNull
,IfTrue
,IfZero
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.
- Author:
- Jeff Schnitzer invalid input: '<'[email protected]>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
matchesPojo
(Object value) Override this method to test a whole pojo for your condition.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.googlecode.objectify.condition.If
matchesValue
-
Constructor Details
-
ValueIf
public ValueIf()
-
-
Method Details
-
matchesPojo
Description copied from interface:If
Override this method to test a whole pojo for your condition. The pojo might be an entity or an embedded class object - whichever holds the field being tested.- Specified by:
matchesPojo
in interfaceIf<V,
Object> - Parameters:
value
- is the entity object on which the field/value exists- Returns:
- true if the value matches the condition defined by an instance of this interface.
-