Class Prefix

    • Constructor Detail

      • Prefix

        public Prefix​(String symbol,
                      int base,
                      int exponent)
    • Method Detail

      • getSignature

        public long getSignature()
        Specified by:
        getSignature in interface Signed
      • concatenate

        public Converter concatenate​(Converter nextConverter)
        Description copied from interface: Converter
        Return a converter which is equivalent to applying the `nextConverter` on the result of a conversion with this converter. If `nextConverter` is null or the identity conversion, this converter is returned without instantiating a new converter. Otherwise, a new converter is instantiated while this converter is not altered.
        Specified by:
        concatenate in interface Converter
        Returns:
        a converter
      • convert

        public Number convert​(Number value)
        Description copied from interface: Converter
        Return the result of an application of this converter on `value`.
        Specified by:
        convert in interface Converter
        Returns:
        result
      • getPrefixClass

        public String getPrefixClass()
      • setPrefixClass

        public void setPrefixClass​(String prefixClass)