Package org.djunits.unit
Class SIUnit
- All Implemented Interfaces:
Serializable
,Cloneable
SIUnit describes a unit with arbitrary SI dimensions for which no predefined unit exists.
Copyright (c) 2019-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUNITS License
- Author:
- Alexander Verbraeck
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.djunits.unit.Unit
Unit.Builder<U extends Unit<U>>
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class org.djunits.unit.Unit
build, clone, deriveLinear, deriveLinear, deriveLinear, derivePerSI, deriveSI, deriveSI, deriveSIKilo, getDefaultAbbreviations, getDefaultDisplayAbbreviation, getDefaultTextualAbbreviation, getId, getLocalizedAbbreviations, getLocalizedDisplayAbbreviation, getLocalizedTextualAbbreviation, getName, getQuantity, getScale, getStandardUnit, getUnit, getUnitSystem, isBaseSIUnit, isGenerated, lookupOrCreateUnitWithSIDimensions, makeBuilder
-
Field Details
-
DIMLESS
the SI Unit for dimensionless.
-
-
Constructor Details
-
SIUnit
public SIUnit()
-
-
Method Details
-
of
Instantiate an SI unit 'of' a String.- Parameters:
siString
- String; the SI string, e.g., "kgm/s2"- Returns:
- the SIUnit based on the SI dimensionality
- Throws:
UnitException
- when the SI string is not according to the rules
-
of
Instantiate an SI unit 'of' a SIDimensions.- Parameters:
siDimensions
- SIDimensions; the SI dimensions- Returns:
- the SIUnit based on the SI dimensionality
-
toString
-
hashCode
public int hashCode() -
equals
-