|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jgoodies.binding.value.ConverterFactory.LongToIntegerConverter
public static final class ConverterFactory.LongToIntegerConverter
Converts Longs to Integers and vice-versa.
Method Summary | |
---|---|
Long |
sourceValue(Integer targetValue)
Returns a Long that is the target Integer divided by this converter's multiplier. |
Integer |
targetValue(Long sourceValue)
Returns an Integer that is the source Long multiplied with this converter's multiplier. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public Integer targetValue(Long sourceValue)
targetValue
in interface BindingConverter<Long,Integer>
sourceValue
- the value to convert
public Long sourceValue(Integer targetValue)
sourceValue
in interface BindingConverter<Long,Integer>
targetValue
- the Integer
object that represents
the percent value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |