Class MixedRadixSupport

    • Constructor Detail

      • MixedRadixSupport

        public MixedRadixSupport​(Radix[] radices)
        Parameters:
        radices - - most significant first
    • Method Detail

      • visitRadixNumbers

        public void visitRadixNumbers​(Number trailingRadixValue,
                                      Consumer<Number> numberVisitor)
        Parameters:
        trailingRadixValue -
        numberVisitor - - gets past over the extracted numbers in least significant first order
      • sumMostSignificant

        public Number sumMostSignificant​(Number[] values)
        Parameters:
        values - - numbers corresponding to the radices in most significant first order, allowed to be of shorter length than the total count of radices
        Returns:
        sum of values each converted to the 'scale' of the trailing radix (the least significant), as given by the constructor of this instance