java.lang.Object
omix.mathxp.units.CustomUnit
- All Implemented Interfaces:
CoreUnitInterface
,UnitInterface
public class CustomUnit extends Object implements CoreUnitInterface
- Author:
- Dr. Peter Droste
-
Constructor Summary
Constructors Constructor Description CustomUnit(String name, String symbol, List<UnitFactor> factors)
CustomUnit(String name, String symbol, UnitFactor... factors)
-
Method Summary
Modifier and Type Method Description boolean
equals(UnitInterface unit, boolean ignoreMultiplicator)
String
getName()
String
getNormalizedSISymbolExpression()
EnumMap<SIUnit,UnitFactor>
getNormalizedSIUnitFactors()
String
getSISymbolExpression()
List<UnitFactor>
getSIUnitFactors()
String
getSymbolExpression()
List<UnitFactor>
getUnitFactors()
omix.mathxp.units.PrivateMember
neverImplementThisInterface(omix.mathxp.units.PrivateMember privateMember)
String
toString()
-
Constructor Details
-
Method Details
-
getSymbolExpression
- Specified by:
getSymbolExpression
in interfaceUnitInterface
-
getSISymbolExpression
- Specified by:
getSISymbolExpression
in interfaceUnitInterface
-
getNormalizedSISymbolExpression
- Specified by:
getNormalizedSISymbolExpression
in interfaceUnitInterface
-
getSIUnitFactors
- Specified by:
getSIUnitFactors
in interfaceUnitInterface
-
getNormalizedSIUnitFactors
- Specified by:
getNormalizedSIUnitFactors
in interfaceUnitInterface
-
getUnitFactors
- Specified by:
getUnitFactors
in interfaceUnitInterface
-
getName
- Specified by:
getName
in interfaceUnitInterface
-
equals
- Specified by:
equals
in interfaceUnitInterface
-
toString
-
neverImplementThisInterface
public omix.mathxp.units.PrivateMember neverImplementThisInterface(omix.mathxp.units.PrivateMember privateMember)- Specified by:
neverImplementThisInterface
in interfaceUnitInterface
-