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 TypeMethodDescriptionboolean
matchesPojo
(Object pojo) Override this method to test a whole pojo for your condition.boolean
matchesValue
(Object value) Test a simple property value.
-
Constructor Details
-
Always
public Always()
-
-
Method Details
-
matchesValue
Description copied from interface:If
Test a simple property value.- Specified by:
matchesValue
in 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: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<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.
-