Copyright © 2011 Citra Technologies. All Rights Reserved.

com.citra.filter
Class ComparisonFilter

java.lang.Object
  extended by com.citra.filter.Filter
      extended by com.citra.filter.ComparisonFilter
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
DateFilter, NumberFilter

public abstract class ComparisonFilter
extends Filter

A general comparison filter.

See Also:
Serialized Form

Field Summary
protected  int comparison
          The current comparison mode.
static int EQ
          The comparison that tests if a value is equal to another.
static int GE
          The comparison that tests if a value is more or equal to another.
static int GT
          The comparison that tests if a value is more than another.
static int LE
          The comparison that tests if a value is less than or equal to value.
static int LT
          The comparison that tests if a value is less than another.
static int NE
          The comparison that tests if a value is not equal to another.
 
Fields inherited from class com.citra.filter.Filter
acceptNull
 
Constructor Summary
ComparisonFilter()
          Constructs a ComparisonFilter with an EQUAL_TO mode.
 
Method Summary
 int getComparison()
          Returns the comparison mode.
 void setComparison(int comparison)
          Sets the comparison mode.
 
Methods inherited from class com.citra.filter.Filter
accept, getAcceptNull, getFilterPattern, setAcceptNull, setFilterPattern
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LT

public static final int LT
The comparison that tests if a value is less than another.

See Also:
Constant Field Values

LE

public static final int LE
The comparison that tests if a value is less than or equal to value.

See Also:
Constant Field Values

EQ

public static final int EQ
The comparison that tests if a value is equal to another.

See Also:
Constant Field Values

GE

public static final int GE
The comparison that tests if a value is more or equal to another.

See Also:
Constant Field Values

GT

public static final int GT
The comparison that tests if a value is more than another.

See Also:
Constant Field Values

NE

public static final int NE
The comparison that tests if a value is not equal to another.

See Also:
Constant Field Values

comparison

protected int comparison
The current comparison mode.

Constructor Detail

ComparisonFilter

public ComparisonFilter()
Constructs a ComparisonFilter with an EQUAL_TO mode.

Method Detail

getComparison

public int getComparison()
Returns the comparison mode.

Returns:
the comparison mode.

setComparison

public void setComparison(int comparison)
Sets the comparison mode.

Parameters:
comparison - the comparison mode

Copyright © 2011 Citra Technologies. All Rights Reserved.