|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.util.Date
com.davisor.data.TimestampData
com.davisor.data.MomentData
Moment is like a timestamp but when it is added to or subtracted from any other time/date value, the result will be the given moment.
MomentType,
Serialized Form| Field Summary |
| Fields inherited from class com.davisor.data.TimestampData |
M_type, NaT |
| Constructor Summary | |
MomentData()
Create a new date data object with the current date and default type. |
|
MomentData(DateFormatType type)
Create a new moment data object with the current time and given type. |
|
MomentData(DateFormatType type,
java.util.Date value)
Create a new moment data object with the given type and value. |
|
MomentData(DateFormatType type,
long milliseconds)
Create a new moment data object with the given type and value. |
|
MomentData(DateFormatType type,
java.lang.String stringValue,
java.text.ParsePosition status)
Creates a moment data value from a string value. |
|
MomentData(MomentData data,
boolean deep)
Deep or shallow copy constructor. |
|
| Method Summary | |
com.davisor.core.Dupable |
dup()
Makes a deep copy of this object. |
| Methods inherited from class com.davisor.data.TimestampData |
abs, add, ceil, ceil, compareTo, compareTo, createCalendar, deinterpolate, div, floor, floor, getFormat, getType, initTime, interpolate, isNull, max, min, mul, negate, setTime, setValue, sub, toStatement, toString, toXML, unit |
| Methods inherited from class java.util.Date |
after, before, clone, compareTo, equals, getDate, getDay, getHours, getMinutes, getMonth, getSeconds, getTime, getTimezoneOffset, getYear, hashCode, parse, setDate, setHours, setMinutes, setMonth, setSeconds, setTime, setYear, toGMTString, toLocaleString, UTC |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public MomentData()
public MomentData(MomentData data,
boolean deep)
data - source data (may be null)deep - determine if the copying is deep or shallowTimestampData.getType(),
Type.dup()public MomentData(DateFormatType type)
type - moment type
public MomentData(DateFormatType type,
java.util.Date value)
type - date typevalue - date value (may be null)MomentData(DateFormatType,long)
public MomentData(DateFormatType type,
long milliseconds)
type - date typemilliseconds - date valueMomentData(DateFormatType,java.util.Date),
TimestampData.initTime(com.davisor.data.DateFormatType, long)
public MomentData(DateFormatType type,
java.lang.String stringValue,
java.text.ParsePosition status)
throws InvalidDataException
stringValue - string value to be parsedstatus - parse status (may be null)
InvalidDataException - if string value could not be parserTimestampData.setValue(String,ParsePosition)| Method Detail |
public com.davisor.core.Dupable dup()
dup in interface com.davisor.core.Dupabledup in class TimestampData
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||