Package org.jpmml.model.temporals
Class Date
- java.lang.Object
-
- org.jpmml.model.temporals.Instant<Date>
-
- org.jpmml.model.temporals.Date
-
- All Implemented Interfaces:
Serializable,Comparable<Date>,ComplexValue
public class Date extends Instant<Date>
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Date that)booleanequals(Object object)Stringformat(String pattern)DataTypegetDataType()LocalDategetDate()inthashCode()static Dateparse(String value)DaysSinceDatetoDaysSinceYear(int year)StringtoSimpleValue()static DatevalueOf(Object value)
-
-
-
Constructor Detail
-
Date
public Date(int year, int month, int dayOfMonth)
-
Date
public Date(LocalDate date)
-
-
Method Detail
-
getDataType
public DataType getDataType()
- Specified by:
getDataTypein classInstant<Date>
-
toSimpleValue
public String toSimpleValue()
- Returns:
- A non-
nullvalue, which can be converted to String representation viaObject.toString().
-
format
public String format(String pattern)
- Specified by:
formatin classInstant<Date>- See Also:
String.format(String, Object...)
-
toDaysSinceYear
public DaysSinceDate toDaysSinceYear(int year)
-
compareTo
public int compareTo(Date that)
-
getDate
public LocalDate getDate()
-
parse
public static Date parse(String value) throws DateTimeParseException
- Throws:
DateTimeParseException
-
-