Package | Description |
---|---|
com.perforce.p4java.common.quantity |
Modifier and Type | Class and Description |
---|---|
class |
Amount<T extends Number & Comparable<T>,U extends Unit<U>>
Represents a value in a unit system and facilitates unambiguous communication of amounts.
|
interface |
Unit<U extends Unit<U>>
Represents a unit hierarchy for a given unit of measure; eg: time.
|
Modifier and Type | Class and Description |
---|---|
class |
Data
Provides a unit to allow conversions and unambiguous passing around of data
Amount s. |
class |
Time
Provides a unit to allow conversions and unambiguous passing around of time
Amount s. |
Modifier and Type | Method and Description |
---|---|
static <U extends Unit<U>> |
Amount.of(double number,
U unit)
Creates an amount that uses a
double value. |
static <U extends Unit<U>> |
Amount.of(float number,
U unit)
Creates an amount that uses a
float value. |
static <U extends Unit<U>> |
Amount.of(int number,
U unit)
Creates an amount that uses an
int value. |
static <U extends Unit<U>> |
Amount.of(long number,
U unit)
Creates an amount that uses a
long value. |
Copyright © 2017 Perforce Software. All Rights Reserved.