Class IfNotEmpty

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

public class IfNotEmpty extends ValueIf<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 invalid input: '<'[email protected]>
  • Constructor Details

    • IfNotEmpty

      public IfNotEmpty()
  • 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.