public class UnitsPerTime extends PrmNumber
| Modifier and Type | Field and Description |
|---|---|
static UnitsPerTime |
MAX_UNITSPERTIME
Maximum value
|
static UnitsPerTime |
ONE_UNITSPERTIME
1.0 value
|
static UnitsPerTime |
ZERO_UNITSPERTIME
Zero value
|
| Constructor and Description |
|---|
UnitsPerTime(double d)
Constructs a
UnitsPerTime object with a given value in double
format. |
UnitsPerTime(Number n)
Constructs a
UnitsPerTime object with a given value in Number
format. |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(PrmNumber obj)
Compares two
UnitsPerTime objects. |
double |
getValue()
Gets the value represented by this object.
|
byteValue, compareTo, doubleValue, equals, floatValue, hashCode, intValue, longValue, setDoubleValue, shortValue, toStringpublic static final UnitsPerTime ZERO_UNITSPERTIME
public static final UnitsPerTime ONE_UNITSPERTIME
public static final UnitsPerTime MAX_UNITSPERTIME
public UnitsPerTime(double d)
UnitsPerTime object with a given value in double
format.d - the units value per time.public UnitsPerTime(Number n)
UnitsPerTime object with a given value in Number
format.n - the units value per time.public int compareTo(PrmNumber obj)
UnitsPerTime objects.compareTo in interface Comparable<PrmNumber>compareTo in class PrmNumberobj - the Object to be compared.0 if the argument is a UnitsPerTime numerically
equal to this UnitsPerTime; a value less than 0 if the
argument is a UnitsPerTime numerically greater than this
UnitsPerTime, or if the argument is not a UnitsPerTime;
and a value greater than 0 if the argument is a
UnitsPerTime numerically less than this UnitsPerTime.public double getValue()
Copyright © 2003, 2021, Oracle and/or its affiliates.
Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.