Package javax.measure

Interface Prefix

    • Method Summary

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

      • getName

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

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

        java.lang.Number getValue()
        Returns the value of this prefix. If the exponent is different from 1, this value is the base part of the associated factor in base^exponent representation.
        Returns:
        The prefix value.
      • getExponent

        int getExponent()
        Exponent part of the associated factor in base^exponent representation. For different factors, e.g. rational numbers like 1/4 the exponent is always 1.
        Returns:
        the exponent part of this prefix.