Package javax.measure.spi
Interface SystemOfUnitsService
-
public interface SystemOfUnitsServiceThis 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.SystemOfUnitsgetSystemOfUnits()Returns the defaultsystem of units.SystemOfUnitsgetSystemOfUnits(java.lang.String name)Returns the system of units having the specified name ornullif 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 ornullif 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.
-
-