Package com.primavera.common.value
Class UnitsPerTime
java.lang.Object
java.lang.Number
com.primavera.common.value.PrmNumber
com.primavera.common.value.UnitsPerTime
- All Implemented Interfaces:
Serializable,Comparable<PrmNumber>
This value type is used to define a unit per time.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final UnitsPerTimeMaximum valuestatic final UnitsPerTime1.0 valuestatic final UnitsPerTimeZero value -
Constructor Summary
ConstructorsConstructorDescriptionUnitsPerTime(double d) Constructs aUnitsPerTimeobject with a given value indoubleformat.Constructs aUnitsPerTimeobject with a given value inNumberformat. -
Method Summary
Methods inherited from class com.primavera.common.value.PrmNumber
byteValue, compareTo, doubleValue, equals, floatValue, hashCode, intValue, longValue, setDoubleValue, shortValue, toString
-
Field Details
-
ZERO_UNITSPERTIME
Zero value -
ONE_UNITSPERTIME
1.0 value -
MAX_UNITSPERTIME
Maximum value
-
-
Constructor Details
-
UnitsPerTime
public UnitsPerTime(double d) Constructs aUnitsPerTimeobject with a given value indoubleformat.- Parameters:
d- the units value per time.
-
UnitsPerTime
Constructs aUnitsPerTimeobject with a given value inNumberformat.- Parameters:
n- the units value per time.
-
-
Method Details
-
compareTo
Compares twoUnitsPerTimeobjects.- Specified by:
compareToin interfaceComparable<PrmNumber>- Overrides:
compareToin classPrmNumber- Parameters:
obj- theObjectto be compared.- Returns:
- the value
0if the argument is aUnitsPerTimenumerically equal to thisUnitsPerTime; a value less than0if the argument is aUnitsPerTimenumerically greater than thisUnitsPerTime, or if the argument is not aUnitsPerTime; and a value greater than0if the argument is aUnitsPerTimenumerically less than thisUnitsPerTime.
-
getValue
public double getValue()Gets the value represented by this object.- Returns:
- the units value
-