public final class WitsmlUnit extends Object
This class is immutable.
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object) |
double |
fromBase(double baseValue)
Convert the specified value given in base unit to this unit.
|
String |
getName()
Return name of this unit.
|
String |
getSymbol()
Return symbol of this unit.
|
int |
hashCode() |
double |
toBase(double value)
Convert the specified value to base unit in the quantity of this unit.
|
String |
toString() |
public String getName()
public String getSymbol()
public double toBase(double value)
value
- Value to convert.public double fromBase(double baseValue)
baseValue
- Base value to convert.Copyright © 2023 Petroware AS - https://petroware.no