All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jpmml.model.temporals.Period Maven / Gradle / Ivy

There is a newer version: 1.6.6
Show newest version
/*
 * Copyright (c) 2018 Villu Ruusmann
 */
package org.jpmml.model.temporals;

import org.dmg.pmml.ComplexValue;
import org.dmg.pmml.DataType;

abstract
public class Period

> extends Number implements ComplexValue, Comparable

{ Period(){ } abstract public DataType getDataType(); @Override public Long toSimpleValue(){ return Long.valueOf(longValue()); } @Override public int intValue(){ long longValue = longValue(); int intValue = (int)longValue; if(intValue != longValue){ throw new ArithmeticException("integer overflow"); } return intValue; } @Override public float floatValue(){ return longValue(); } @Override public double doubleValue(){ return longValue(); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy