protected static final class SimpleUnitFormat.ASCIIFormat extends SimpleUnitFormat.DefaultFormat
SimpleUnitFormat.ASCIIFormat, SimpleUnitFormat.DefaultFormat, SimpleUnitFormat.FlavornameToUnit, unitToName| Modifier and Type | Method and Description |
|---|---|
Appendable |
format(javax.measure.Unit<?> unit,
Appendable appendable)
Formats the specified unit.
|
protected boolean |
isValidIdentifier(String name)
Indicates if the specified name can be used as unit identifier.
|
protected String |
nameFor(javax.measure.Unit<?> unit) |
String |
toString() |
protected javax.measure.Unit<?> |
unitFor(String name) |
alias, isUnitIdentifierPart, label, parse, parse, parse, parseProductUnit, parseSingleUnit, prefixForformat, getInstance, getInstance, getNewInstance, getNewInstance, parseObjectformatprotected String nameFor(javax.measure.Unit<?> unit)
nameFor in class SimpleUnitFormat.DefaultFormatprotected javax.measure.Unit<?> unitFor(String name)
unitFor in class SimpleUnitFormat.DefaultFormatpublic String toString()
toString in class SimpleUnitFormat.DefaultFormatpublic Appendable format(javax.measure.Unit<?> unit, Appendable appendable) throws IOException
SimpleUnitFormatformat in interface javax.measure.format.UnitFormatformat in class SimpleUnitFormat.DefaultFormatunit - the unit to format.appendable - the appendable destination.appendable, with formatted text appended.IOException - if an error occurs.protected boolean isValidIdentifier(String name)
SimpleUnitFormatisValidIdentifier in class SimpleUnitFormat.DefaultFormatname - the identifier to be tested.true if the name specified can be used as label or alias for this format;false otherwise.Copyright © 2005–2022 Units of Measurement project. All rights reserved.