Interface IPrefix<P extends IPrefix<P>>

    • Method Detail

      • identifier

        java.lang.String identifier()
        Returns:
        identifier usable for constructing persistable identifiers for units.
      • symbol

        java.lang.String symbol()
        Returns:
        the symbol normally used to present this prefix in a GUI.
      • altSymbol

        java.lang.String altSymbol()
        An alternative symbol. Intended to be used for interactive parsing where entering the micron character may be cumbersome, or catching typing of MB when intending MiB. (These are very different cases, and should ideally not be handled by the same mechanism. However, a single mechanism seems to work right now.)
        Returns:
        alternative symbol, or null if no other representation is available
      • localizedName

        java.lang.String localizedName()
      • asExponentialStringBuilder

        java.lang.StringBuilder asExponentialStringBuilder​(boolean multiplicationSign)
      • valueFactorTo

        ScaleFactor valueFactorTo​(P targetPrefix)