com.googlecode.objectify.condition
Class Always

java.lang.Object
  extended by com.googlecode.objectify.condition.Always
All Implemented Interfaces:
If<java.lang.Object,java.lang.Object>

public class Always
extends java.lang.Object
implements If<java.lang.Object,java.lang.Object>

Simple If condition that always returns true for any value.

Author:
Jeff Schnitzer

Constructor Summary
Always()
           
 
Method Summary
 boolean matches(java.lang.Object value, java.lang.Object onPojo)
          Test a value (for a field) and/or an entity.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Always

public Always()
Method Detail

matches

public boolean matches(java.lang.Object value,
                       java.lang.Object onPojo)
Description copied from interface: If
Test a value (for a field) and/or an entity.

Specified by:
matches in interface If<java.lang.Object,java.lang.Object>
Parameters:
value - is the actual value of a particular field
onPojo - is the entity object on which the field/value exists
Returns:
true if the value matches the condition defined by an instance of this interface.


Copyright © 2011 Jeff Schnitzer and a gang of pirates. All Rights Reserved. Build version: 3.1