Package org.jpmml.model.temporals
Class Period<P extends Period<P>>
- java.lang.Object
-
- java.lang.Number
-
- org.jpmml.model.temporals.Period<P>
-
- All Implemented Interfaces:
Serializable,Comparable<P>,ComplexValue
- Direct Known Subclasses:
ComplexPeriod,SimplePeriod
public abstract class Period<P extends Period<P>> extends Number implements ComplexValue, Comparable<P>
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description doubledoubleValue()floatfloatValue()abstract DataTypegetDataType()intintValue()LongtoSimpleValue()-
Methods inherited from class java.lang.Number
byteValue, longValue, shortValue
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Comparable
compareTo
-
-
-
-
Method Detail
-
getDataType
public abstract DataType getDataType()
-
toSimpleValue
public Long toSimpleValue()
- Specified by:
toSimpleValuein interfaceComplexValue- Returns:
- A non-
nullvalue, which can be converted to String representation viaObject.toString().
-
floatValue
public float floatValue()
- Specified by:
floatValuein classNumber
-
doubleValue
public double doubleValue()
- Specified by:
doubleValuein classNumber
-
-