protected static class LinearUnit.Custom extends LinearUnit
LinearUnit.Custom
TypedUnit.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, valueTransformTo
addPossiblyIntegral, quantity, valueTransformTo
protected Custom(LinearKindOfQuantity kindOfQuantity, String unitId, ScaleFactor factorToDefinition, LinearUnit definitionUnit, String unitSymbol, String unitDesc, String... altNames)
protected boolean isCustom()
isCustom
in class LinearUnit
public ITypedQuantity<LinearUnit> asWellKnownQuantity()
asWellKnownQuantity
in class LinearUnit
protected String persistableStringFor(Number numericalValue)
persistableStringFor
in class LinearUnit
protected String localizedFormatFor(Number numericalValue, boolean useBreakingSpace, boolean allowCustomUnit)
localizedFormatFor
in class LinearUnit
public boolean equals(Object other)
equals
in class LinearUnit
public int hashCode()
hashCode
in class LinearUnit
Copyright © 2020. All rights reserved.