public class Value extends Number
As a style sheet may express values in several different units. This class purpose is to pack the value and the units it is expressed in into a single object.
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID |
StyleConstants.Units |
units
The value units.
|
double |
value
The value.
|
Constructor and Description |
---|
Value(StyleConstants.Units units,
double value)
New value.
|
Value(Value other)
New copy of another value.
|
Modifier and Type | Method and Description |
---|---|
double |
doubleValue() |
boolean |
equals(Value o) |
float |
floatValue() |
int |
intValue() |
long |
longValue() |
String |
toString() |
byteValue, shortValue
private static final long serialVersionUID
public double value
public StyleConstants.Units units
public Value(StyleConstants.Units units, double value)
units
- The value units.value
- The value.public float floatValue()
floatValue
in class Number
public double doubleValue()
doubleValue
in class Number
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses