Class IfNotZero

java.lang.Object
com.googlecode.objectify.condition.ValueIf<Number>
com.googlecode.objectify.condition.IfNotZero
All Implemented Interfaces:
If<Number,​Object>

public class IfNotZero
extends ValueIf<Number>

Simple If condition that returns true if the value is anything other than zero. Note that a null value returns true.

Author:
Jeff Schnitzer
  • Constructor Details

    • IfNotZero

      public IfNotZero()
  • Method Details

    • matchesValue

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