Primavera Integration API 7.0

com.primavera.common.value
Class UnitsPerTime

java.lang.Object
  extended by java.lang.Number
      extended by com.primavera.common.value.PrmNumber
          extended by com.primavera.common.value.UnitsPerTime
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<PrmNumber>

public class UnitsPerTime
extends PrmNumber

This value type is used to define a unit per time.

See Also:
Serialized Form

Field Summary
static UnitsPerTime MAX_UNITSPERTIME
          Maximum value
static UnitsPerTime ONE_UNITSPERTIME
          1.0 value
static UnitsPerTime ZERO_UNITSPERTIME
          Zero value
 
Constructor Summary
UnitsPerTime(double d)
          Constructs a UnitsPerTime object with a given value in double format.
UnitsPerTime(java.lang.Number n)
          Constructs a UnitsPerTime object with a given value in Number format.
 
Method Summary
 int compareTo(PrmNumber obj)
          Compares two UnitsPerTime objects.
 double getValue()
          Gets the value represented by this object
 
Methods inherited from class com.primavera.common.value.PrmNumber
byteValue, compareTo, doubleValue, equals, floatValue, hashCode, intValue, longValue, setDoubleValue, shortValue, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ZERO_UNITSPERTIME

public static final UnitsPerTime ZERO_UNITSPERTIME
Zero value


ONE_UNITSPERTIME

public static final UnitsPerTime ONE_UNITSPERTIME
1.0 value


MAX_UNITSPERTIME

public static final UnitsPerTime MAX_UNITSPERTIME
Maximum value

Constructor Detail

UnitsPerTime

public UnitsPerTime(double d)
Constructs a UnitsPerTime object with a given value in double format.

Parameters:
d - the units value per time.

UnitsPerTime

public UnitsPerTime(java.lang.Number n)
Constructs a UnitsPerTime object with a given value in Number format.

Parameters:
n - the units value per time.
Method Detail

compareTo

public int compareTo(PrmNumber obj)
Compares two UnitsPerTime objects.

Specified by:
compareTo in interface java.lang.Comparable<PrmNumber>
Overrides:
compareTo in class PrmNumber
Parameters:
obj - the Object to be compared.
Returns:
the value 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.

getValue

public double getValue()
Gets the value represented by this object

Returns:
the units value

Primavera Integration API 7.0

Copyright © 2003, 2009, Oracle and/or its affiliates. All rights reserved.