com.googlecode.objectify.condition
Class IfNotEmpty

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

public class IfNotEmpty
extends ValueIf<java.lang.Object>

Satisfies the opposite of IfEmpty - returns true if the value is not null and not an empty String, Collection, or Map.

Author:
Jeff Schnitzer

Constructor Summary
IfNotEmpty()
           
 
Method Summary
 boolean matches(java.lang.Object value)
          Override this method to test a field value for your condition.
 
Methods inherited from class com.googlecode.objectify.condition.ValueIf
matches
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IfNotEmpty

public IfNotEmpty()
Method Detail

matches

public boolean matches(java.lang.Object value)
Description copied from class: ValueIf
Override this method to test a field value for your condition. For example, for a class IfNull, return true if the value is null.

Specified by:
matches in class ValueIf<java.lang.Object>


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