public class JacksonInnerTime
extends java.lang.Object
JacksonValue.JSON_VALUE_TYPE_STRING.| Constructor | Description |
|---|---|
JacksonInnerTime() |
Constructor.
|
JacksonInnerTime(long year,
byte month,
byte day,
byte hour,
byte minute,
byte second,
int timezone,
int before,
int after,
int precision,
java.lang.String calendarmodel) |
TODO Review the utility of this constructor.
|
JacksonInnerTime(java.lang.String time,
int timezoneOffset,
int beforeTolerance,
int afterTolerance,
int precision,
java.lang.String calendarModel) |
Constructs a new object for the given data.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(java.lang.Object o) |
|
int |
getAfter() |
Returns the after tolerance.
|
int |
getBefore() |
Returns the before tolerance.
|
java.lang.String |
getCalendarmodel() |
Returns the calendar model IRI.
|
byte |
getDay() |
Returns the day.
|
byte |
getHour() |
Returns the hour.
|
byte |
getMinute() |
Returns the minute.
|
byte |
getMonth() |
Returns the month.
|
int |
getPrecision() |
Returns the precision constant.
|
byte |
getSecond() |
Returns the second.
|
java.lang.String |
getTime() |
Returns the formatted date-time string as used in JSON.
|
int |
getTimezone() |
Returns the timezone offset.
|
long |
getYear() |
Returns the year.
|
void |
setAfter(int after) |
Sets the after tolerance to the given value.
|
void |
setBefore(int before) |
Sets the before tolerance to the given value.
|
void |
setCalendarmodel(java.lang.String calendarmodel) |
Sets the calendar model IRI to the given value.
|
void |
setPrecision(int precision) |
Sets the precision to the given value.
|
void |
setTime(java.lang.String time) |
Sets the formatted date-time string to the given value.
|
void |
setTimezone(int timezone) |
Sets the timezone offset to the given value.
|
public JacksonInnerTime()
public JacksonInnerTime(java.lang.String time,
int timezoneOffset,
int beforeTolerance,
int afterTolerance,
int precision,
java.lang.String calendarModel)
time - timezoneOffset - beforeTolerance - afterTolerance - precision - calendarModel - public JacksonInnerTime(long year,
byte month,
byte day,
byte hour,
byte minute,
byte second,
int timezone,
int before,
int after,
int precision,
java.lang.String calendarmodel)
year - month - day - hour - minute - second - timezone - before - after - precision - calendarmodel - public java.lang.String getTime()
public void setTime(java.lang.String time)
time - new valuepublic int getTimezone()
TimeValue.getTimezoneOffset()public void setTimezone(int timezone)
timezone - new valuepublic int getBefore()
TimeValue.getBeforeTolerance()public void setBefore(int before)
before - new valuepublic int getAfter()
TimeValue.getAfterTolerance()public void setAfter(int after)
after - new valuepublic int getPrecision()
TimeValue.getPrecision()public void setPrecision(int precision)
precision - new valuepublic java.lang.String getCalendarmodel()
TimeValue.getPreferredCalendarModel()public void setCalendarmodel(java.lang.String calendarmodel)
calendarmodel - new valuepublic byte getSecond()
TimeValue.getSecond()public byte getMinute()
TimeValue.getMinute()public byte getHour()
TimeValue.getHour()public byte getDay()
TimeValue.getDay()public byte getMonth()
TimeValue.getMonth()public long getYear()
TimeValue.getYear()public boolean equals(java.lang.Object o)
equals in class java.lang.ObjectCopyright © 2014–2017 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage