com.googlecode.objectify.condition.IfNotZero 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 anything other than zero.
* Note that a null value returns true.
*
* @author Jeff Schnitzer
*/
public class IfNotZero extends ValueIf
{
@Override
public boolean matches(Number value)
{
return value != null && value.doubleValue() != 0;
}
}