|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.fudgemsg.types.FudgeDateTime
public class FudgeDateTime
Dummy class for holding a combined Date and Time with the other data available in the Fudge encoding.
Constructor Summary | |
---|---|
|
FudgeDateTime(Calendar calendar)
Creates a new Fudge date/time representation. |
|
FudgeDateTime(DateTimeAccuracy accuracy,
DateTimeProvider dateTimeProvider)
Creates a new Fudge date/time representation. |
protected |
FudgeDateTime(DateTimeAccuracy accuracy,
Instant instant)
Creates a new Fudge date/time representation. |
|
FudgeDateTime(DateTimeAccuracy accuracy,
InstantProvider instantProvider)
Creates a new Fudge date/time representation. |
|
FudgeDateTime(DateTimeAccuracy precision,
int year,
int month,
int day,
int timezoneOffset,
int seconds,
int nanos)
Creates a new Fudge date/time representation. |
protected |
FudgeDateTime(DateTimeAccuracy accuracy,
LocalDateTime localDateTime)
Creates a new Fudge date/time representation. |
|
FudgeDateTime(DateTimeAccuracy accuracy,
OffsetDateTime offsetDateTime)
Creates a new Fudge date/time representation. |
|
FudgeDateTime(DateTimeProvider dateTimeProvider)
Creates a new Fudge date/time representation. |
|
FudgeDateTime(FudgeDate date,
FudgeTime time)
Creates a new Fudge date/time representation. |
|
FudgeDateTime(InstantProvider instantProvider)
Creates a new Fudge date/time representation. |
protected |
FudgeDateTime(LocalDateTime localDateTime)
Creates a new Fudge date/time representation. |
|
FudgeDateTime(OffsetDate offsetDate)
Creates a new Fudge date/time representation. |
|
FudgeDateTime(OffsetDateTime offsetDateTime)
Creates a new Fudge date/time representation. |
Method Summary | |
---|---|
boolean |
equals(Object o)
|
DateTimeAccuracy |
getAccuracy()
Returns the resolution of the representation |
FudgeDate |
getDate()
Returns the date component. |
FudgeTime |
getTime()
Returns the time component. |
int |
hashCode()
|
Instant |
toInstant()
|
LocalDate |
toLocalDate()
|
LocalDateTime |
toLocalDateTime()
|
LocalTime |
toLocalTime()
|
OffsetDate |
toOffsetDate()
Returns the date representation as an OffsetDate object. |
OffsetDateTime |
toOffsetDateTime()
Returns the representation as an OffsetDateTime object. |
OffsetTime |
toOffsetTime()
Returns the time representation as a OffsetTime object. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FudgeDateTime(DateTimeAccuracy precision, int year, int month, int day, int timezoneOffset, int seconds, int nanos)
precision
- resolution of the representationyear
- yearmonth
- monthday
- daytimezoneOffset
- timezone offset in 15 minute intervalsseconds
- seconds since midnightnanos
- nanoseconds within the secondpublic FudgeDateTime(FudgeDate date, FudgeTime time)
date
- the datetime
- the timeprotected FudgeDateTime(DateTimeAccuracy accuracy, Instant instant)
accuracy
- resolution of the representationinstant
- time instant - the date and time at UTC will be usedpublic FudgeDateTime(OffsetDateTime offsetDateTime)
offsetDateTime
- date and timepublic FudgeDateTime(DateTimeAccuracy accuracy, OffsetDateTime offsetDateTime)
accuracy
- resolution of the representationoffsetDateTime
- date and timepublic FudgeDateTime(OffsetDate offsetDate)
offsetDate
- date - Midnight on this day will be used for the timeprotected FudgeDateTime(LocalDateTime localDateTime)
localDateTime
- date - Midnight on this day will be used for the timeprotected FudgeDateTime(DateTimeAccuracy accuracy, LocalDateTime localDateTime)
accuracy
- resolution of the representationlocalDateTime
- date and timepublic FudgeDateTime(InstantProvider instantProvider)
instantProvider
- provides an instant - the date and time at UTC will be usedpublic FudgeDateTime(DateTimeAccuracy accuracy, InstantProvider instantProvider)
accuracy
- resolution of the representationinstantProvider
- provides an instant - the date and time at UTC will be usedpublic FudgeDateTime(DateTimeProvider dateTimeProvider)
dateTimeProvider
- provides the date and timepublic FudgeDateTime(DateTimeAccuracy accuracy, DateTimeProvider dateTimeProvider)
accuracy
- resolution of the representationdateTimeProvider
- provides the date and timepublic FudgeDateTime(Calendar calendar)
calendar
- representation of the date and timeMethod Detail |
---|
public FudgeDate getDate()
public FudgeTime getTime()
public DateTimeAccuracy getAccuracy()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
public LocalDate toLocalDate()
toLocalDate
in interface DateProvider
public LocalDateTime toLocalDateTime()
toLocalDateTime
in interface DateTimeProvider
public LocalTime toLocalTime()
toLocalTime
in interface TimeProvider
public OffsetDate toOffsetDate()
OffsetDate
object.
public OffsetDateTime toOffsetDateTime()
OffsetDateTime
object.
public OffsetTime toOffsetTime()
OffsetTime
object.
public Instant toInstant()
toInstant
in interface InstantProvider
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |