Package com.storedobject.core
Class AbstractPeriod<T extends Date>
java.lang.Object
com.storedobject.common.Range<T>
com.storedobject.core.AbstractPeriod<T>
- Direct Known Subclasses:
DatePeriod
,TimePeriod
,TimestampPeriod
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
AbstractPeriod
-
-
Method Details
-
getCalendarFrom
-
getCalendarTo
-
value
-
getPeriodInDays
public int getPeriodInDays() -
getPeriodInMonths
public int getPeriodInMonths() -
toDBString
-
getMonth
public int getMonth() -
getYear
public int getYear() -
getMonthFrom
public int getMonthFrom() -
getYearFrom
public int getYearFrom() -
getMonthTo
public int getMonthTo() -
getYearTo
public int getYearTo() -
getDBCondition
-
getDBCondition
-
getDBTimeCondition
-
getDBTimeCondition
-
toString
Convert to string in the given "date format". The "date format" passed must be a valid format for creating a formatted date/date-time withSimpleDateFormat
. For example, by passing "MMM dd, yyyy" will result in a formatted output like "Jan 23, 1998 - Mar 6, 1999".- Parameters:
format
- Date format.- Returns:
- Formatted output.
-
inside
public boolean inside(long time) -
inside
-
toShortString
-