Interface Prefix

  • All Known Implementing Classes:
    BinaryPrefix, MetricPrefix

    public interface Prefix

    A unit prefix is a specifier or mnemonic that is prepended to units of measurement to indicate multiples or fractions of the units.

    Since:
    2.0
    Version:
    0.8, 2018-04-20
    See Also:
    Wikipedia: Unit Prefix
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      int getBase()
      Base part of the associated factor in base^exponent representation.
      int getExponent()
      Exponent part of the associated factor in base^exponent representation.
      java.lang.String getSymbol()
      Returns the symbol of this prefix.
    • Method Detail

      • getSymbol

        java.lang.String getSymbol()
        Returns the symbol of this prefix.
        Returns:
        this prefix symbol, not null.
      • getBase

        int getBase()
        Base part of the associated factor in base^exponent representation.
      • getExponent

        int getExponent()
        Exponent part of the associated factor in base^exponent representation.