com.googlecode.objectify.condition.IfZero Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of objectify Show documentation
Show all versions of objectify Show documentation
*** THIS VERSION UPLOADED FOR USE WITH CEDAR-COMMON, TO AVOID DEPENDENCIES ON GOOGLE CODE-BASED MAVEN REPOSITORIES. *** The simplest convenient interface to the Google App Engine datastore
The newest version!
package com.googlecode.objectify.condition;
/**
* Simple If condition that returns true if the value is a numeric zero.
* Note that a null value still returns false.
*
* @author Jeff Schnitzer
*/
public class IfZero extends ValueIf
{
@Override
public boolean matches(Number value)
{
return value != null && value.doubleValue() == 0;
}
}