protected static class LinearUnit.Custom extends LinearUnit
LinearUnit.CustomTypedUnit.UnitSelector<U extends TypedUnit<U>>EMPTY_STRING_ARRAY| Modifier | Constructor and Description |
|---|---|
protected |
Custom(LinearKindOfQuantity kindOfQuantity,
String unitId,
ScaleFactor factorToDefinition,
LinearUnit definitionUnit,
String unitSymbol,
String unitDesc,
String... altNames) |
| Modifier and Type | Method and Description |
|---|---|
ITypedQuantity<LinearUnit> |
asWellKnownQuantity() |
boolean |
equals(Object other) |
int |
hashCode() |
protected boolean |
isCustom() |
protected String |
localizedFormatFor(Number numericalValue,
boolean useBreakingSpace,
boolean allowCustomUnit) |
protected String |
persistableStringFor(Number numericalValue) |
add, compareTo, customParseInteractive, floorQuantize, floorQuantize, getAltLocalizedNames, getAppendableSuffix, getContentType, getDeltaUnit, getIdentifier, getLocalizedDescription, getLocalizedSymbol, getScaledUnit, getUnitClass, isLinear, quantity, quantity, subtractSame, toString, valueTransformToaddPossiblyIntegral, quantity, valueTransformToprotected Custom(LinearKindOfQuantity kindOfQuantity, String unitId, ScaleFactor factorToDefinition, LinearUnit definitionUnit, String unitSymbol, String unitDesc, String... altNames)
protected boolean isCustom()
isCustom in class LinearUnitpublic ITypedQuantity<LinearUnit> asWellKnownQuantity()
asWellKnownQuantity in class LinearUnitprotected String persistableStringFor(Number numericalValue)
persistableStringFor in class LinearUnitprotected String localizedFormatFor(Number numericalValue, boolean useBreakingSpace, boolean allowCustomUnit)
localizedFormatFor in class LinearUnitpublic boolean equals(Object other)
equals in class LinearUnitpublic int hashCode()
hashCode in class LinearUnitCopyright © 2019. All rights reserved.