Class IfEmpty

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

public class IfEmpty extends ValueIf<Object>

Simple If condition that returns true if the value is null or empty. The value can be one of:

  • java.lang.String
  • java.util.Collection
  • java.util.Map
  • java array of any kind
Author:
Jeff Schnitzer invalid input: '<'[email protected]>
  • Constructor Details

    • IfEmpty

      public IfEmpty()
  • Method Details

    • matchesValue

      public boolean matchesValue(Object value)
      Description copied from interface: If
      Test a simple property value.
      Parameters:
      value - is the actual value of a particular field
      Returns:
      true if the value matches the condition defined by an instance of this interface.