Class Always
java.lang.Object
com.googlecode.objectify.condition.Always
Simple If condition that always returns true for any value.
- Author:
- Jeff Schnitzer invalid input: '<'[email protected]>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanmatchesPojo(Object pojo) Override this method to test a whole pojo for your condition.booleanmatchesValue(Object value) Test a simple property value.
-
Constructor Details
-
Always
public Always()
-
-
Method Details
-
matchesValue
Description copied from interface:IfTest a simple property value.- Specified by:
matchesValuein interfaceIf<Object,Object> - Parameters:
value- is the actual value of a particular field- Returns:
- true if the value matches the condition defined by an instance of this interface.
-
matchesPojo
Description copied from interface:IfOverride 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:
matchesPojoin interfaceIf<Object,Object> - Parameters:
pojo- 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.
-