| Package | Description |
|---|---|
| org.rhq.core.clientapi.util.units |
| Modifier and Type | Method and Description |
|---|---|
static ScaleConstants |
ScaleConstants.getConstantWithOrdinal(int ord)
Return the UnitsConstants constant that has ord as its ordinal value
|
ScaleConstants |
UnitNumber.getScale() |
protected abstract ScaleConstants |
SimpleFormatter.getUnitScale() |
protected ScaleConstants |
PercentageFormatter.getUnitScale() |
protected ScaleConstants |
NoFormatter.getUnitScale() |
static ScaleConstants |
ScaleConstants.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ScaleConstants[] |
ScaleConstants.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
static EnumSet<ScaleConstants> |
ScaleConstants.getAllScales()
Return an EnumSet that conatins all SCALE_ enum constants
|
static EnumSet<ScaleConstants> |
ScaleConstants.getBinaryScaleSet()
Return an EnumSet that contain all SCALE_ enum constants dealing with binary scaling
|
static EnumSet<ScaleConstants> |
ScaleConstants.getTemperatureSet() |
static EnumSet<ScaleConstants> |
ScaleConstants.getTimeSet()
Return an EnumSet that contain all SCALE_ enum constants dealing with time
|
| Modifier and Type | Method and Description |
|---|---|
protected FormattedNumber |
BinaryFormatter.createFormattedValue(double value,
ScaleConstants scale,
NumberFormat fmt) |
FormattedNumber[] |
DateFormatter.formatSame(double[] val,
UnitsConstants unitType,
ScaleConstants scale,
Locale locale) |
FormattedNumber[] |
BinaryFormatter.formatSame(double[] vals,
UnitsConstants unitType,
ScaleConstants scale,
Locale locale,
FormatSpecifics specifics) |
FormattedNumber[] |
SimpleFormatter.formatSame(double[] vals,
UnitsConstants unitType,
ScaleConstants scale,
Locale locale,
FormatSpecifics specifics) |
FormattedNumber[] |
Formatter.formatSame(double[] values,
UnitsConstants unitType,
ScaleConstants scale,
Locale locale,
FormatSpecifics format)
Format a several values at once into the same format.
|
FormattedNumber[] |
PercentageFormatter.formatSame(double[] vals,
UnitsConstants unitType,
ScaleConstants scale,
Locale locale,
FormatSpecifics specifics) |
FormattedNumber[] |
TemperatureFormatter.formatSame(double[] values,
UnitsConstants unitType,
ScaleConstants scale,
Locale locale,
FormatSpecifics format) |
FormattedNumber[] |
DurationFormatter.formatSame(double[] val,
UnitsConstants unitType,
ScaleConstants scale,
Locale locale,
FormatSpecifics specifics) |
FormattedNumber[] |
DateFormatter.formatSame(double[] val,
UnitsConstants unitType,
ScaleConstants scale,
Locale locale,
FormatSpecifics specifics) |
static BigDecimal |
DateFormatter.getBaseTime(double value,
ScaleConstants scale) |
BigDecimal |
BinaryFormatter.getBaseValue(double value,
ScaleConstants scale) |
BigDecimal |
SimpleFormatter.getBaseValue(double value,
ScaleConstants scale) |
BigDecimal |
Formatter.getBaseValue(double value,
ScaleConstants scale)
Get the base value of a value, given its scale.
|
BigDecimal |
TemperatureFormatter.getBaseValue(double value,
ScaleConstants scale) |
BigDecimal |
DurationFormatter.getBaseValue(double value,
ScaleConstants scale) |
BigDecimal |
DateFormatter.getBaseValue(double value,
ScaleConstants scale) |
static BigDecimal |
DateFormatter.getScaledTime(BigDecimal value,
ScaleConstants targScale) |
BigDecimal |
BinaryFormatter.getScaledValue(BigDecimal value,
ScaleConstants targScale) |
BigDecimal |
SimpleFormatter.getScaledValue(BigDecimal value,
ScaleConstants targScale) |
BigDecimal |
Formatter.getScaledValue(BigDecimal value,
ScaleConstants targScale)
Get a scaled version of a value.
|
BigDecimal |
TemperatureFormatter.getScaledValue(BigDecimal value,
ScaleConstants targScale) |
BigDecimal |
DurationFormatter.getScaledValue(BigDecimal value,
ScaleConstants targScale) |
BigDecimal |
DateFormatter.getScaledValue(BigDecimal value,
ScaleConstants targScale) |
BigDecimal |
UnitNumber.getScaledValue(ScaleConstants targScale) |
| Constructor and Description |
|---|
UnitNumber(double value,
UnitsConstants units,
ScaleConstants scale) |
Copyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.