Package javax.measure.spi
Interface SystemOfUnitsService
-
public interface SystemOfUnitsService
This interface represents the service to obtain asystem of units
.Common system of units are "SI" (System International), "Imperial" (British), "US" (US Customary).
- Since:
- 1.0
- Version:
- 1.0, August 8, 2016
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Collection<SystemOfUnits>
getAvailableSystemsOfUnits()
Gets a list with available systems for thisSystemOfUnitsService
.SystemOfUnits
getSystemOfUnits()
Returns the defaultsystem of units
.SystemOfUnits
getSystemOfUnits(java.lang.String name)
Returns the system of units having the specified name ornull
if none.
-
-
-
Method Detail
-
getSystemOfUnits
SystemOfUnits getSystemOfUnits()
Returns the defaultsystem of units
. Depending on the implementation this may be the International System of Units or another default system.- Returns:
- the default system of units.
-
getSystemOfUnits
SystemOfUnits getSystemOfUnits(java.lang.String name)
Returns the system of units having the specified name ornull
if none.- Parameters:
name
- the system of unit name.- Returns:
- the given system of units.
-
getAvailableSystemsOfUnits
java.util.Collection<SystemOfUnits> getAvailableSystemsOfUnits()
Gets a list with available systems for thisSystemOfUnitsService
.- Returns:
- list of available systems of units, never null.
-
-