Package javax.measure

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:
1.3, July 7, 2019
Author:
Werner Keil
See Also:
Wikipedia: Unit Prefix
  • Method Summary

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

    • getName

      Returns the name of this prefix.
      Returns:
      this prefix name, not null.
    • getSymbol

      Returns the symbol of this prefix.
      Returns:
      this prefix symbol, not null.
    • 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

      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.