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, targetOutOfRange
concat, getOffset, invertAndConcat, invertAndConcat, targetFloor, targetIntFloor, targetNumber, targetNumber
public boolean targetOutOfRange(long srcNumericalValue, long maxAbsValue)
targetOutOfRange
in interface IScalarAffineTransform
targetOutOfRange
in class BinaryScaleFactor
public long targetValue(long srcNumericalValue)
targetValue
in interface IScalarAffineTransform
targetValue
in class BinaryScaleFactor
srcNumericalValue
- a numerical quantity value, expressed in the source unitlong
public long targetFloor(long srcNumericalValue)
targetFloor
in interface IScalarAffineTransform
targetFloor
in class BinaryScaleFactor
srcNumericalValue
- a numerical quantity value, expressed in the source unitlong
public double targetValue(double srcNumericalValue)
targetValue
in interface IScalarAffineTransform
targetValue
in class BinaryScaleFactor
srcNumericalValue
- a numerical quantity value, expressed in the source unitpublic BinaryScaleFactor invert()
invert
in interface IScalarAffineTransform
invert
in class BinaryScaleFactor