Class ValueIf<V>

java.lang.Object
com.googlecode.objectify.condition.ValueIf<V>
All Implemented Interfaces:
If<V,​Object>
Direct Known Subclasses:
IfDefault, IfEmpty, IfEmptyString, IfFalse, IfNotDefault, IfNotEmpty, IfNotNull, IfNotZero, IfNull, IfTrue, IfZero

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.

Author:
Jeff Schnitzer
  • Constructor Details

    • ValueIf

      public ValueIf()
  • Method Details

    • matchesPojo

      public final boolean matchesPojo(Object value)
      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 interface If<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.