Package org.jpmml.model.temporals
Class Time
- java.lang.Object
-
- org.jpmml.model.temporals.Instant<Time>
-
- org.jpmml.model.temporals.Time
-
- All Implemented Interfaces:
Serializable,Comparable<Time>,ComplexValue
public class Time extends Instant<Time>
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Time that)booleanequals(Object object)Stringformat(String pattern)DataTypegetDataType()LocalTimegetTime()inthashCode()static Timeparse(String value)SecondsSinceMidnighttoSecondsSinceMidnight()StringtoSimpleValue()static TimevalueOf(Object value)
-
-
-
Constructor Detail
-
Time
public Time(int hour, int minute, int second)
-
Time
public Time(LocalTime time)
-
-
Method Detail
-
getDataType
public DataType getDataType()
- Specified by:
getDataTypein classInstant<Time>
-
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<Time>- See Also:
String.format(String, Object...)
-
toSecondsSinceMidnight
public SecondsSinceMidnight toSecondsSinceMidnight()
-
compareTo
public int compareTo(Time that)
-
getTime
public LocalTime getTime()
-
parse
public static Time parse(String value) throws DateTimeParseException
- Throws:
DateTimeParseException
-
-