Package org.openjdk.jmc.common.unit
Class KindOfQuantity.ExactFormatter<U extends TypedUnit<U>>
- java.lang.Object
-
- org.openjdk.jmc.common.unit.DisplayFormatter<IQuantity>
-
- org.openjdk.jmc.common.unit.KindOfQuantity.ExactFormatter<U>
-
- All Implemented Interfaces:
IFormatter<IQuantity>
- Enclosing class:
- KindOfQuantity<U extends TypedUnit<U>>
public static class KindOfQuantity.ExactFormatter<U extends TypedUnit<U>> extends DisplayFormatter<IQuantity>
-
-
Field Summary
-
Fields inherited from class org.openjdk.jmc.common.unit.DisplayFormatter
ENGINEERING_NOTATION_IDENTIFIER, SCIENTIFIC_NOTATION_IDENTIFIER
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedExactFormatter(KindOfQuantity<U> kindOfQuantity)protectedExactFormatter(KindOfQuantity<U> kindOfQuantity, String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringformat(IQuantity quantity)-
Methods inherited from class org.openjdk.jmc.common.unit.DisplayFormatter
getContentType, getIdentifier, getName
-
-
-
-
Constructor Detail
-
ExactFormatter
protected ExactFormatter(KindOfQuantity<U> kindOfQuantity)
-
ExactFormatter
protected ExactFormatter(KindOfQuantity<U> kindOfQuantity, String name)
-
-
Method Detail
-
format
public String format(IQuantity quantity)
- Specified by:
formatin interfaceIFormatter<U extends TypedUnit<U>>- Overrides:
formatin classDisplayFormatter<IQuantity>
-
-