private static class BinaryScaleFactor.Unity extends BinaryScaleFactor
powerOf2| Constructor and Description |
|---|
Unity() |
| Modifier and Type | Method and Description |
|---|---|
BinaryScaleFactor |
invert() |
long |
targetFloor(long srcNumericalValue) |
boolean |
targetOutOfRange(long srcNumericalValue,
long maxAbsValue) |
double |
targetValue(double srcNumericalValue) |
long |
targetValue(long srcNumericalValue) |
asExponentialStringBuilder, compareTo, concat, equals, get, getFloor1024Factor, getFloor2Factor, getMultiplier, hashCode, isInteger, isUnity, targetOutOfRangeconcat, getOffset, invertAndConcat, invertAndConcat, targetFloor, targetIntFloor, targetNumber, targetNumberpublic boolean targetOutOfRange(long srcNumericalValue,
long maxAbsValue)
targetOutOfRange in interface IScalarAffineTransformtargetOutOfRange in class BinaryScaleFactorpublic long targetValue(long srcNumericalValue)
targetValue in interface IScalarAffineTransformtargetValue in class BinaryScaleFactorsrcNumericalValue - a numerical quantity value, expressed in the source unitlongpublic long targetFloor(long srcNumericalValue)
targetFloor in interface IScalarAffineTransformtargetFloor in class BinaryScaleFactorsrcNumericalValue - a numerical quantity value, expressed in the source unitlongpublic double targetValue(double srcNumericalValue)
targetValue in interface IScalarAffineTransformtargetValue in class BinaryScaleFactorsrcNumericalValue - a numerical quantity value, expressed in the source unitpublic BinaryScaleFactor invert()
invert in interface IScalarAffineTransforminvert in class BinaryScaleFactor