Class Always

java.lang.Object
com.googlecode.objectify.condition.Always
All Implemented Interfaces:
If<Object,Object>

public class Always extends Object implements If<Object,Object>

Simple If condition that always returns true for any value.

Author:
Jeff Schnitzer invalid input: '<'[email protected]>
  • Constructor Details

    • Always

      public Always()
  • Method Details

    • matchesValue

      public boolean matchesValue(Object value)
      Description copied from interface: If
      Test a simple property value.
      Specified by:
      matchesValue in interface If<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

      public boolean matchesPojo(Object pojo)
      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<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.