|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cesilko.rachota.core.filters.AbstractTaskFilter
org.cesilko.rachota.core.filters.DurationFilter
public class DurationFilter
Task filter allowing to filter tasks by duration.
| Field Summary | |
|---|---|
static int |
RULE_LESS_THAN
Rule requiring given content NOT to be smaller than task property. |
static int |
RULE_MORE_THAN
Rule requiring given content NOT to be greater than task property. |
| Constructor Summary | |
|---|---|
DurationFilter()
Creates new default duration filter which is preset to RULE_MORE_THAN content rule and zero duration. |
|
DurationFilter(int contentRule,
java.lang.Long duration)
Creates new duration filter. |
|
| Method Summary | |
|---|---|
java.util.Vector |
filterTasks(java.util.Vector tasks)
Applies duration filter on given tasks and returns those tasks that satisfied filter criterion. |
java.util.Vector |
getContentRules()
Returns both available content rules of duration filter. |
java.lang.String |
toString()
Returns name of filter as text. |
| Methods inherited from class org.cesilko.rachota.core.filters.AbstractTaskFilter |
|---|
getContent, getContentRule, getContentValues, setContent, setContentRule |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int RULE_MORE_THAN
public static final int RULE_LESS_THAN
| Constructor Detail |
|---|
public DurationFilter(int contentRule,
java.lang.Long duration)
contentRule - One of two content rules determining allowed value of task duration.duration - Time duration in millisecondss that must be greater/smaller than task duration.public DurationFilter()
| Method Detail |
|---|
public java.util.Vector getContentRules()
getContentRules in class AbstractTaskFilterpublic java.util.Vector filterTasks(java.util.Vector tasks)
filterTasks in class AbstractTaskFiltertasks - Vector of tasks to be filtered.
public java.lang.String toString()
toString in class AbstractTaskFilter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||