
com.googlecode.objectify.condition.IfEmptyString Maven / Gradle / Ivy
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 matchesValue(String value) {
return value != null && value.isEmpty();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy