public static final class ConverterFactory.LongToIntegerConverter extends Object implements BindingConverter<Long,Integer>
Modifier and Type | Method and Description |
---|---|
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.
|
public Integer targetValue(Long sourceValue)
targetValue
in interface BindingConverter<Long,Integer>
sourceValue
- the value to convertpublic Long sourceValue(Integer targetValue)
sourceValue
in interface BindingConverter<Long,Integer>
targetValue
- the Integer
object that represents
the percent valueCopyright © 2002-2015 JGoodies Software GmbH. All Rights Reserved.