public class UnitPrefix
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
name
The name of the prefix:
|
double |
value
The value of the prefix:
|
| Constructor and Description |
|---|
UnitPrefix(java.lang.String name,
double value)
Construct.
|
public final java.lang.String name
public final double value
public UnitPrefix(java.lang.String name,
double value)
name - The name of the prefix (e.g. "mega", "M").value - The value of the prefix (e.g. 1e6).java.lang.IllegalArgumentException - One of the arguments was null.