Class IfNotDefault

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

public class IfNotDefault extends ValueIf<Object> implements InitializeIf

The opposite of IfDefault

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

    • IfNotDefault

      public IfNotDefault()
  • Method Details

    • init

      public void init(ObjectifyFactory fact, Field field)
      Description copied from interface: InitializeIf
      Instructs the condition instance which field it lives on.
      Specified by:
      init in interface InitializeIf
      Parameters:
      fact - is just handy to have around
      field - is the field which has the annotation with this condition.
    • 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.