Class IfZero

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

public class IfZero
extends ValueIf<Number>

Simple If condition that returns true if the value is a numeric zero. Note that a null value still returns false.

Author:
Jeff Schnitzer
  • Constructor Details

    • IfZero

      public IfZero()
  • 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.