|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jgoodies.binding.value.ConverterFactory.DoubleToIntegerConverter
public static final class ConverterFactory.DoubleToIntegerConverter
Converts Doubles to Integers and vice-versa.
Method Summary | |
---|---|
Double |
sourceValue(Integer targetValue)
Converts a Double using the multiplier
and sets it as new value. |
Integer |
targetValue(Double sourceValue)
Converts the source value and returns a corresponding Integer value using the multiplier. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public Integer targetValue(Double sourceValue)
Integer
value using the multiplier.
targetValue
in interface BindingConverter<Double,Integer>
sourceValue
- the subject's value
public Double sourceValue(Integer targetValue)
Double
using the multiplier
and sets it as new value.
sourceValue
in interface BindingConverter<Double,Integer>
targetValue
- the Integer
object that shall
be converted
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |