public class MixedRadixSupport extends Object
MixedRadix
.Constructor | Description |
---|---|
MixedRadixSupport(Radix[] radices) |
Modifier and Type | Method | Description |
---|---|---|
Number |
sumMostSignificant(Number[] values) |
|
void |
visitRadixNumbers(Number trailingRadixValue,
Consumer<Number> numberVisitor) |
public MixedRadixSupport(Radix[] radices)
radices
- - most significant firstpublic void visitRadixNumbers(Number trailingRadixValue, Consumer<Number> numberVisitor)
trailingRadixValue
- numberVisitor
- - gets past over the extracted numbers in least significant first orderpublic Number sumMostSignificant(Number[] values)
values
- - numbers corresponding to the radices in most significant first order,
allowed to be of shorter length than the total count of radicesvalues
each converted to the 'scale' of the trailing radix (the least significant),
as given by the constructor of this instanceCopyright © 2005–2020 Units of Measurement project. All rights reserved.