public class JacksonInnerTime extends Object
JacksonValue.JSON_VALUE_TYPE_STRING.| Constructor and Description |
|---|
JacksonInnerTime()
Constructor.
|
JacksonInnerTime(long year,
byte month,
byte day,
byte hour,
byte minute,
byte second,
int timezone,
int before,
int after,
int precision,
String calendarmodel)
TODO Review the utility of this constructor.
|
JacksonInnerTime(String time,
int timezoneOffset,
int beforeTolerance,
int afterTolerance,
int precision,
String calendarModel)
Constructs a new object for the given data.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
getAfter()
Returns the after tolerance.
|
int |
getBefore()
Returns the before tolerance.
|
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.
|
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(String calendarmodel)
Sets the calendar model IRI to the given value.
|
void |
setPrecision(int precision)
Sets the precision to the given value.
|
void |
setTime(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(String time, int timezoneOffset, int beforeTolerance, int afterTolerance, int precision, 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,
String calendarmodel)
year - month - day - hour - minute - second - timezone - before - after - precision - calendarmodel - public String getTime()
public void setTime(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 String getCalendarmodel()
TimeValue.getPreferredCalendarModel()public void setCalendarmodel(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()Copyright © 2014–2015 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage