All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.googlecode.objectify.condition.ValueIf Maven / Gradle / Ivy

Go to download

*** 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;

/**
 * 

Base class for If classes that test against a simple value. This is the * most common case; IfNull, IfFalse, IfDefault, etc.

* *

All concrete instances of this interface must have either a no-arg constructor * or a constructor that takes {@code Class, Field} parameters.

* * @author Jeff Schnitzer */ abstract public class ValueIf implements If { /** * Override this method to test a field value for your condition. * * For example, for a class IfNull, return true if the value is null. */ abstract public boolean matches(T value); /* (non-Javadoc) * @see com.googlecode.objectify.condition.If#matches(java.lang.Object, java.lang.Object) */ @Override final public boolean matches(T value, Object onPojo) { return this.matches(value); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy