Interface MultiplyConverter

    • Method Detail

      • ofRational

        static MultiplyConverter ofRational​(long dividend,
                                            long divisor)
        Creates a MultiplyConverter with the specified rational factor made up of dividend and divisor
        Parameters:
        dividend -
        divisor -
      • of

        static MultiplyConverter of​(Number factor)
        Creates a MultiplyConverter with the specified constant factor.
        Parameters:
        factor -
        Returns:
      • of

        static MultiplyConverter of​(double factor)
        Creates a MultiplyConverter with the specified constant factor.
        Parameters:
        factor - the double factor.
        Returns:
        a new MultiplyConverter.
      • ofPrefix

        static MultiplyConverter ofPrefix​(Prefix prefix)
        Creates a MultiplyConverter with the specified Prefix.
        Parameters:
        prefix - the prefix for the factor.
        Returns:
        a new MultiplyConverter.
      • ofPiExponent

        static MultiplyConverter ofPiExponent​(int exponent)
        Creates a MultiplyConverter with the specified exponent of Pi.
        Parameters:
        exponent - the exponent for the factor π^exponent.
        Returns:
        a new MultiplyConverter.
      • ofExponent

        static MultiplyConverter ofExponent​(int base,
                                            int exponent)
        Creates a MultiplyConverter with the specified base and exponent.
        Parameters:
        base - the base.
        exponent - the exponent.
        Returns:
        a new MultiplyConverter.
      • ofTenExponent

        static MultiplyConverter ofTenExponent​(int exponent)
        Creates a MultiplyConverter with base 10 and an exponent.
        Parameters:
        exponent - the exponent for the factor 10^exponent.
      • getFactor

        default Number getFactor()
        Returns the scale factor of this converter.
        Specified by:
        getFactor in interface tech.uom.lib.common.function.FactorSupplier<Number>
        Returns:
        the scale factor.