org.ujac.util.table
Class BetweenRowFilterRule
java.lang.Object
org.ujac.util.table.BaseRowFilterRule
org.ujac.util.table.BetweenRowFilterRule
- All Implemented Interfaces:
- RowFilterRule
public class BetweenRowFilterRule
- extends BaseRowFilterRule
Name: BetweenRowFilterRule
Description: Checks field values for a value between a lower and a upper value.
- Author:
- lauerc
Method Summary |
boolean |
test(Row row)
Tests the filter rule for the given row. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BetweenRowFilterRule
public BetweenRowFilterRule(String columnName,
Comparable from,
Comparable to)
- Constructs a BetweenRowFilterRule instance with specific attributes.
- Parameters:
columnName
- The column name.from
- The lower value to compare.to
- The upper value to compare.
test
public boolean test(Row row)
throws TableException
- Description copied from interface:
RowFilterRule
- Tests the filter rule for the given row.
- Parameters:
row
- The row to test.
- Returns:
- true in case the test was successfully passed valid, else false.
- Throws:
TableException
- In case a table handling failure occurred.- See Also:
RowFilterRule.test(org.ujac.util.table.Row)
Copyright © 2003-2004 UJAC.org. All Rights Reserved.