planetj.util
Interface IFilter

All Known Implementing Classes:
AndFilter, GenericRowFilter, OrFilter

public interface IFilter

Interface for filters. All filters should be immutable objects.


Field Summary
static List COMPARISON_CONVERSION
          A List containing the String conversions of the comparison constants
static int CONTAINS
           
static int ENDS_WITH
           
static int EQUAL
           
static int GREATER_THAN
           
static int GREATER_THAN_OR_EQUAL
           
static int LESS_THAN
           
static int LESS_THAN_OR_EQUAL
           
static int STARTS_WITH
           
 
Method Summary
 boolean meetsCriteria(Object o)
          Returns true if the object meets this filter's criteria.
 

Field Detail

EQUAL

public static final int EQUAL
See Also:
Constant Field Values

GREATER_THAN

public static final int GREATER_THAN
See Also:
Constant Field Values

LESS_THAN

public static final int LESS_THAN
See Also:
Constant Field Values

GREATER_THAN_OR_EQUAL

public static final int GREATER_THAN_OR_EQUAL
See Also:
Constant Field Values

LESS_THAN_OR_EQUAL

public static final int LESS_THAN_OR_EQUAL
See Also:
Constant Field Values

STARTS_WITH

public static final int STARTS_WITH
See Also:
Constant Field Values

ENDS_WITH

public static final int ENDS_WITH
See Also:
Constant Field Values

CONTAINS

public static final int CONTAINS
See Also:
Constant Field Values

COMPARISON_CONVERSION

public static final List COMPARISON_CONVERSION
A List containing the String conversions of the comparison constants

Method Detail

meetsCriteria

public boolean meetsCriteria(Object o)
                      throws CMException
Returns true if the object meets this filter's criteria.

CMException