U
- the unit typepublic interface Value<U extends Unit<U>>
This file was generated by the djunits value classes generator, 26 jun, 2015
Copyright (c) 2015-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUNITS License.
$LastChangedDate: 2019-01-18 00:35:01 +0100 (Fri, 18 Jan 2019) $, @version $Revision: 324 $, by $Author: averbraeck $,
initial version 26 jun, 2015
Modifier and Type | Method and Description |
---|---|
double |
expressAsSIUnit(double value)
Convert a value to the standard SI unit.
|
U |
getUnit()
Retrieve the unit of this Value.
|
boolean |
isAbsolute()
Indicate whether this is an Absolute Value.
|
boolean |
isRelative()
Indicate whether this is a Relative Value.
|
void |
setDisplayUnit(U newUnit)
Set a new display unit for the value.
|
U getUnit()
double expressAsSIUnit(double value)
value
- double; the value to convert to the standard SI unitvoid setDisplayUnit(U newUnit)
newUnit
- U; the new display unit of this Valueboolean isAbsolute()
boolean isRelative()
Copyright © 2015–2019 Delft University of Technology. All rights reserved.