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 Details

    • getSystemOfUnits

      SystemOfUnits getSystemOfUnits()
      Returns the default system 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

      SystemOfUnits getSystemOfUnits(String name)
      Returns the system of units having the specified name or null if 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 this SystemOfUnitsService.
      Returns:
      list of available systems of units, never null.