com.googlecode.objectify.condition.IfEmptyString 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 an empty string.
* Note that a null string still returns false.
*
* @author Jeff Schnitzer
*/
public class IfEmptyString extends ValueIf
{
@Override
public boolean matches(String value)
{
return value != null && value.isEmpty();
}
}