|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.logAnalyzer.analysis.LATimePeriod
Used to set the time period of the analysis.
Field Summary | |
static LATimePeriod |
DAY
1 day time period. |
static LATimePeriod |
HOUR
1 hour time period. |
static LATimePeriod |
MINUTE
1 minute time period. |
static LATimePeriod |
MINUTES10
10 minutes time period. |
static LATimePeriod |
MINUTES30
30 minutes time period. |
static LATimePeriod |
MONTH
1 month time period. |
static LATimePeriod |
SECOND
1 second time period. |
static LATimePeriod |
WEEK
1 week time period. |
static LATimePeriod |
YEAR
1 year time period. |
Method Summary | |
int |
compareTo(java.lang.Object anotherPeriod)
Compare two periods. |
java.text.SimpleDateFormat |
getDateFormat()
Return the date format. |
java.lang.String |
getName()
Return the period name. |
static LATimePeriod |
getPeriod(java.lang.String name)
Return the period associated to the specified name. |
java.util.Date |
normalize(java.util.Date date)
Normalize the specified date with current date format. |
java.lang.String |
normalizeToString(java.util.Date date)
Format the specified date to String. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final LATimePeriod SECOND
public static final LATimePeriod MINUTE
public static final LATimePeriod MINUTES10
public static final LATimePeriod MINUTES30
public static final LATimePeriod HOUR
public static final LATimePeriod DAY
public static final LATimePeriod WEEK
public static final LATimePeriod MONTH
public static final LATimePeriod YEAR
Method Detail |
public java.text.SimpleDateFormat getDateFormat()
public java.lang.String getName()
public java.util.Date normalize(java.util.Date date)
date
- Date to normalize
public java.lang.String normalizeToString(java.util.Date date)
date
- Date to format
public static LATimePeriod getPeriod(java.lang.String name)
name
- Period name
public int compareTo(java.lang.Object anotherPeriod)
compareTo
in interface java.lang.Comparable
anotherPeriod
- The period to be compared.
Comparable.compareTo(java.lang.Object)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |