Package com.illumon.iris.web.shared.data
Class LocalDate
java.lang.Object
com.illumon.iris.web.shared.data.LocalDate
- All Implemented Interfaces:
Serializable
A simple container for serializing LocalDate values.
This should be better for serialization than java.time.LocalDate since we use bytes for
month and day, and is compatible with GWT (java.time is not available in GWT).
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbytebyteintgetYear()voidsetDayOfMonth(byte dayOfMonth) voidsetMonthValue(byte monthValue) voidsetYear(int year)
-
Constructor Details
-
LocalDate
public LocalDate(int year, byte monthValue, byte dayOfMonth) -
LocalDate
public LocalDate()
-
-
Method Details
-
getYear
public int getYear() -
setYear
public void setYear(int year) -
getMonthValue
public byte getMonthValue() -
setMonthValue
public void setMonthValue(byte monthValue) -
getDayOfMonth
public byte getDayOfMonth() -
setDayOfMonth
public void setDayOfMonth(byte dayOfMonth)
-