Class Units

Object
Units
All Implemented Interfaces:
Factory

public class Units extends Object implements Factory
Pre-defined constants for the units of measurement used by the conformance tests. This pseudo-factory provides separated methods for all units needed by geoapi-conformance.
Since:
3.0.1
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Units(SystemOfUnits system)
    Creates a new factory which will use the given system of units.
  • Method Summary

    Modifier and Type
    Method
    Description
    Unit<Time>
    day()
    Unit of measurement defined as 24×60×60 seconds.
    Unit<Angle>
    Unit of measurement defined as π/180 radians.
    static Units
    Returns the default units factory.
    Not yet implemented.
    Unit<Length>
    Unit of measurement defined as 1000 metres.
    Unit<Length>
    Base unit of measurement for lengths.
    Unit<Dimensionless>
    one()
    Dimensionless unit for scale measurements.
    Unit<Dimensionless>
    ppm()
    The "parts per million" unit.
    Unit<Angle>
    The base unit of measurement for angle.
    Unit<Time>
    Base unit of measurement for durations.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Units

      protected Units(SystemOfUnits system)
      Creates a new factory which will use the given system of units.
      Parameters:
      system - the system of units to use for creating base units.
  • Method Details

    • getDefault

      public static Units getDefault()
      Returns the default units factory. This factory uses the unit service provider which is current at the time of the first invocation of this method.
      Returns:
      the default units factory.
    • getVendor

      public Citation getVendor()
      Not yet implemented.
      Specified by:
      getVendor in interface Factory
      Returns:
      null in current implementation.
    • metre

      public Unit<Length> metre()
      Base unit of measurement for lengths.
    • kilometre

      public Unit<Length> kilometre()
      Unit of measurement defined as 1000 metres.
    • radian

      public Unit<Angle> radian()
      The base unit of measurement for angle.
    • degree

      public Unit<Angle> degree()
      Unit of measurement defined as π/180 radians.
    • second

      public Unit<Time> second()
      Base unit of measurement for durations.
    • day

      public Unit<Time> day()
      Unit of measurement defined as 24×60×60 seconds.
    • one

      public Unit<Dimensionless> one()
      Dimensionless unit for scale measurements.
    • ppm

      public Unit<Dimensionless> ppm()
      The "parts per million" unit.