bernard
authored
|
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
public enum DateValues {
Today, Yesterday, Saturday, Friday, Thursday, Wednesday, Tuesday, Monday, Sunday, ThisWeek("{This week}"), LastWeek("{Last week}"), TwoWeeksAgo(
"{Two weeks ago}"), ThreeWeeksAgo("{Three weeks ago}"), ThisMonth("{This month}"), LastMonth("{Last month}");
// ------------------------------ FIELDS ------------------------------
private String filterValue;
// --------------------------- CONSTRUCTORS ---------------------------
private DateValues()
{
filterValue = name();
}
private DateValues(String filterValue)
{
this.filterValue = filterValue;
}
// --------------------- GETTER / SETTER METHODS ---------------------
public String getFilterValue()
{
return filterValue;
}
}
|