Interface BaseUnit<T extends BaseUnit<T>>

Type Parameters:
T - Concrete type of BaseUnit
All Known Subinterfaces:
AbstractBaseUnit<T>
All Known Implementing Classes:
MetricDimensionUnit, PieceUnit, WeightUnit

public interface BaseUnit<T extends BaseUnit<T>>
A BaseUnit is the type definition of an Measurable. Each BaseUnit defines a base Measurable. For example the BaseUnit of weights can define grams (G), kilograms (KG) or tons (T) and 1G is the base unit.
Author:
Heiko Scherrer
  • Method Summary

    Modifier and Type
    Method
    Description
    Return all sub types of the BaseUnit.
    Return the base unit type of the BaseUnit.
    A descriptive short name of the BaseUnit.
  • Method Details

    • getAll

      List<T> getAll()
      Return all sub types of the BaseUnit.
      Returns:
      a list of sub types
    • getBaseUnit

      T getBaseUnit()
      Return the base unit type of the BaseUnit.
      Returns:
      The base unit type
    • name

      String name()
      A descriptive short name of the BaseUnit.
      Returns:
      As String