protected static final class SimpleUnitFormat.ASCIIFormat extends SimpleUnitFormat.DefaultFormat
SimpleUnitFormat.ASCIIFormat, SimpleUnitFormat.DefaultFormat, SimpleUnitFormat.FlavornameToUnit, unitToName| Modifier | Constructor | Description |
|---|---|---|
protected |
ASCIIFormat() |
| Modifier and Type | Method | 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) |
formatclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitformat, getInstance, getInstance, isAllASCII, parseObjectalias, getSymbols, isUnitIdentifierPart, label, parse, parse, parse, parseProductUnit, parseSingleUnit, prefixForprotected ASCIIFormat()
protected 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 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–2020 Units of Measurement project. All rights reserved.