Top Description Inners Methods
tech.units.indriya.internal.function.radix

public Interface Radix

Known Direct Implementers
tech.units.indriya.internal.function.radix.Radix.NumberFactorRadix
Annotations
@API
status:INTERNAL
Static Imports
org.apiguardian.api.API.Status.INTERNAL

Internal utility for MixedRadixSupport.
Author
Andi Huber
Since
2.0

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Method Summary

Modifier and TypeMethod and Description
public Number[]
divideAndRemainder(Number number, boolean
- whether the division remainder should be rounded towards ZERO
roundRemainderTowardsZero
)

Returns a two-element Number array containing {number / radix, number % radix}

public Number
multiply(Number number)

Multiply without precision loss.

public static Radix
ofMultiplyConverter(UnitConverter linearUnitConverter)

public static Radix

Method Detail

divideAndRemainderback to summary
public Number[] divideAndRemainder(Number number, boolean roundRemainderTowardsZero)

Returns a two-element Number array containing {number / radix, number % radix}

Parameters
roundRemainderTowardsZero:boolean

- whether the division remainder should be rounded towards ZERO

multiplyback to summary
public Number multiply(Number number)

Multiply without precision loss.

ofMultiplyConverterback to summary
public static Radix ofMultiplyConverter(UnitConverter linearUnitConverter)
ofNumberFactorback to summary
public static Radix ofNumberFactor(Number number)
tech.units.indriya.internal.function.radix back to summary

public Class Radix.NumberFactorRadix

extends Object
implements Radix
Class Inheritance
  • java.lang.Object
  • tech.units.indriya.internal.function.radix.Radix.NumberFactorRadix
All Implemented Interfaces
tech.units.indriya.internal.function.radix.Radix

Field Summary

Modifier and TypeField and Description
private final Number

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Number[]
divideAndRemainder(Number number, boolean
- whether the division remainder should be rounded towards ZERO
roundRemainderTowardsZero
)

Implements tech.units.indriya.internal.function.radix.Radix.divideAndRemainder.

Returns a two-element Number array containing {number / radix, number % radix}

public Number
multiply(Number number)

Implements tech.units.indriya.internal.function.radix.Radix.multiply.

Multiply without precision loss.

private static NumberSystem
ns()

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

radixback to summary
private final Number radix

Constructor Detail

NumberFactorRadixback to summary
public NumberFactorRadix(Number radix)

Method Detail

divideAndRemainderback to summary
public Number[] divideAndRemainder(Number number, boolean roundRemainderTowardsZero)

Implements tech.units.indriya.internal.function.radix.Radix.divideAndRemainder.

Doc from tech.units.indriya.internal.function.radix.Radix.divideAndRemainder.

Returns a two-element Number array containing {number / radix, number % radix}

Parameters
roundRemainderTowardsZero:boolean

- whether the division remainder should be rounded towards ZERO

Annotations
@Override
multiplyback to summary
public Number multiply(Number number)

Implements tech.units.indriya.internal.function.radix.Radix.multiply.

Doc from tech.units.indriya.internal.function.radix.Radix.multiply.

Multiply without precision loss.

Annotations
@Override
nsback to summary
private static NumberSystem ns()