Interface SystemOfUnitsService
public interface SystemOfUnitsService
This interface represents the service to obtain a
system 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
Modifier and TypeMethodDescriptionGets a list with available systems for thisSystemOfUnitsService.Returns the defaultsystem of units.getSystemOfUnits(String name) Returns the system of units having the specified name ornullif none.
-
Method Details
-
getSystemOfUnits
SystemOfUnits getSystemOfUnits()Returns the defaultsystem of units. Depending on the implementation this may be the invalid input: '<'a href=http://en.wikipedia.org/wiki/International_System_of_Units"> International System of Units or another default system.- Returns:
- the default system of units.
-
getSystemOfUnits
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
Collection<SystemOfUnits> getAvailableSystemsOfUnits()Gets a list with available systems for thisSystemOfUnitsService.- Returns:
- list of available systems of units, never null.
-