public class InchToMillimeterValueTransformer extends ValueTransformer<java.lang.Double>
Constructor and Description |
---|
InchToMillimeterValueTransformer() |
Modifier and Type | Method and Description |
---|---|
boolean |
allowsReverseTransformation()
Returns true if the instance can do a reverse transformation.
|
java.lang.Double |
reverseTransformValue(java.lang.Double mm)
Transforms a
Double with an assumed value in
millimeters into a Double with a value in inches. |
java.lang.Double |
transformValue(java.lang.Double i)
Transforms a
Double with an assumed value in inches
to a Double with a value in millimeters. |
public boolean allowsReverseTransformation()
false
.allowsReverseTransformation
in class ValueTransformer<java.lang.Double>
true
public java.lang.Double transformValue(java.lang.Double i)
Double
with an assumed value in inches
to a Double
with a value in millimeters.transformValue
in class ValueTransformer<java.lang.Double>
i
- Double
with the value of i multiplied by
25.4public java.lang.Double reverseTransformValue(java.lang.Double mm)
Double
with an assumed value in
millimeters into a Double
with a value in inches.reverseTransformValue
in class ValueTransformer<java.lang.Double>
mm
- Double
to be transformedDouble
with the value of mm divided by 25.4