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.4, April 3, 2023
Author:
Werner Keil
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Exponent part of the associated factor in base^exponent representation.
    Returns the name of this prefix.
    Returns the symbol of this prefix.
    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.