Class FormattedDate
- java.lang.Object
-
- java.util.Date
-
- com.openindex.openestate.tool.utils.FormattedDate
-
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<Date>
public class FormattedDate extends Date
FormattedDate.- Since:
- 1.0
- Author:
- Andreas Rudolph
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FormattedDate(int dateType, int timeType)FormattedDate(long time, int dateType, int timeType)FormattedDate(Date date, int dateType, int timeType)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FormattedDatecreateDateInstance(int dateType)static FormattedDatecreateDateInstance(long time, int dateType)static FormattedDatecreateDateInstance(Date date, int dateType)static FormattedDatecreateDateTimeInstance(int dateType, int timeType)static FormattedDatecreateDateTimeInstance(long time, int dateType, int timeType)static FormattedDatecreateDateTimeInstance(Date date, int dateType, int timeType)static FormattedDatecreateTimeInstance(int timeType)static FormattedDatecreateTimeInstance(long time, int timeType)static FormattedDatecreateTimeInstance(Date date, int timeType)booleanequals(Object obj)DateFormatgetFormat()inthashCode()booleanisDate()booleanisTime()StringtoString()-
Methods inherited from class java.util.Date
after, before, clone, compareTo, from, getDate, getDay, getHours, getMinutes, getMonth, getSeconds, getTime, getTimezoneOffset, getYear, parse, setDate, setHours, setMinutes, setMonth, setSeconds, setTime, setYear, toGMTString, toInstant, toLocaleString, UTC
-
-
-
-
Constructor Detail
-
FormattedDate
public FormattedDate(int dateType, int timeType)
-
FormattedDate
public FormattedDate(long time, int dateType, int timeType)
-
FormattedDate
public FormattedDate(Date date, int dateType, int timeType)
-
-
Method Detail
-
createDateInstance
public static FormattedDate createDateInstance(int dateType)
-
createDateInstance
public static FormattedDate createDateInstance(long time, int dateType)
-
createDateInstance
public static FormattedDate createDateInstance(Date date, int dateType)
-
createDateTimeInstance
public static FormattedDate createDateTimeInstance(int dateType, int timeType)
-
createDateTimeInstance
public static FormattedDate createDateTimeInstance(long time, int dateType, int timeType)
-
createDateTimeInstance
public static FormattedDate createDateTimeInstance(Date date, int dateType, int timeType)
-
createTimeInstance
public static FormattedDate createTimeInstance(int timeType)
-
createTimeInstance
public static FormattedDate createTimeInstance(long time, int timeType)
-
createTimeInstance
public static FormattedDate createTimeInstance(Date date, int timeType)
-
isDate
public boolean isDate()
-
isTime
public boolean isTime()
-
getFormat
public DateFormat getFormat()
-
-