public abstract class ValueIf<V> extends Object implements If<V,Object>
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 and Description |
---|
ValueIf() |
Modifier and Type | Method and Description |
---|---|
boolean |
matchesPojo(Object value)
Override this method to test a whole pojo for your condition.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
matchesValue
public final boolean matchesPojo(Object value)
If
matchesPojo
in interface If<V,Object>
value
- is the entity object on which the field/value existsCopyright © 2016. All rights reserved.