public class SIUnit extends Unit<SIUnit>
Copyright (c) 2015-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUNITS License.
$LastChangedDate: 2019-03-02 19:06:46 +0100 (Sat, 02 Mar 2019) $, @version $Revision: 342 $, by $Author: averbraeck $,
initial version Jun 15, 2014
STANDARD_UNITS
Constructor and Description |
---|
SIUnit(String siCoefficientString)
Create an arbitrary SI unit based on a coefficient string, such as m3/cd2.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equalsIgnoreNaming(Object obj)
Test if two units are the same, except for the name and abbreviation.
|
String |
getSICoefficientsString() |
SIUnit |
getStandardUnit() |
equals, generateHashCode, getAbbreviation, getAbbreviationKey, getAllUnitsOfThisType, getDefaultLocaleAbbreviation, getDefaultLocaleName, getDefaultLocaleTextualRepresentation, getDefaultLocaleTextualRepresentations, getDefaultTextualRepresentation, getName, getScale, getSICoefficients, getTextualRepresentations, getUnits, getUnitSystem, hashCode, isBaseSIUnit, isLocalizable, lookupOrCreateSIUnitWithSICoefficients, lookupOrCreateUnitWithSICoefficients, lookupUnitWithSICoefficients, toString
public SIUnit(String siCoefficientString)
siCoefficientString
- String; textual description of the unit.public final SIUnit getStandardUnit()
getStandardUnit
in class Unit<SIUnit>
public final String getSICoefficientsString()
getSICoefficientsString
in class Unit<SIUnit>
public boolean equalsIgnoreNaming(Object obj)
equalsIgnoreNaming
in class Unit<SIUnit>
obj
- Object; the object to compare withCopyright © 2015–2019 Delft University of Technology. All rights reserved.