public class YardToMeterValueTransformer extends ValueTransformer<java.lang.Double>
Constructor and Description |
---|
YardToMeterValueTransformer() |
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 m)
Transforms a
Double instance with an assumed value
in meters to a Double with a value in yards. |
java.lang.Double |
transformValue(java.lang.Double y)
Transforms a
Double instance with an assumed value
in yards to a Double with a value in meters. |
public boolean allowsReverseTransformation()
false
.allowsReverseTransformation
in class ValueTransformer<java.lang.Double>
true
public java.lang.Double transformValue(java.lang.Double y)
Double
instance with an assumed value
in yards to a Double
with a value in meters.transformValue
in class ValueTransformer<java.lang.Double>
y
- java.lang.Double
with the value y
divided by 1.0936public java.lang.Double reverseTransformValue(java.lang.Double m)
Double
instance with an assumed value
in meters to a Double
with a value in yards.reverseTransformValue
in class ValueTransformer<java.lang.Double>
m
- java.lang.Double
to be transformedjava.lang.Double
with the value of m
multiplied by 1.0936