private static class DecimalScaleFactor.Unity extends DecimalScaleFactor
powerOf10
Constructor and Description |
---|
Unity() |
Modifier and Type | Method and Description |
---|---|
ScaleFactor |
concat(ScaleFactor innerFactor)
Concatenate (that is, multiply) this scale factor with
innerFactor . |
DecimalScaleFactor |
invert() |
long |
targetFloor(long srcNumericalValue) |
boolean |
targetOutOfRange(long srcNumericalValue,
long maxAbsValue) |
double |
targetValue(double srcNumericalValue) |
long |
targetValue(long srcNumericalValue) |
appendExponentTo, asExponentialStringBuilder, compareTo, equals, get, getEngFloorFactor, getMultiplier, getSciFloorFactor, hashCode, isInteger, isUnity, targetOutOfRange
concat, getOffset, invertAndConcat, invertAndConcat, targetFloor, targetIntFloor, targetNumber, targetNumber
public ScaleFactor concat(ScaleFactor innerFactor)
ScaleFactor
innerFactor
. This is just a
special case of ScaleFactor.concat(IScalarAffineTransform)
.concat
in class DecimalScaleFactor
ScaleFactor.concat(IScalarAffineTransform)
public boolean targetOutOfRange(long srcNumericalValue, long maxAbsValue)
targetOutOfRange
in interface IScalarAffineTransform
targetOutOfRange
in class DecimalScaleFactor
public long targetValue(long srcNumericalValue)
targetValue
in interface IScalarAffineTransform
targetValue
in class DecimalScaleFactor
srcNumericalValue
- a numerical quantity value, expressed in the source unitlong
public long targetFloor(long srcNumericalValue)
targetFloor
in interface IScalarAffineTransform
targetFloor
in class DecimalScaleFactor
srcNumericalValue
- a numerical quantity value, expressed in the source unitlong
public double targetValue(double srcNumericalValue)
targetValue
in interface IScalarAffineTransform
targetValue
in class DecimalScaleFactor
srcNumericalValue
- a numerical quantity value, expressed in the source unitpublic DecimalScaleFactor invert()
invert
in interface IScalarAffineTransform
invert
in class DecimalScaleFactor