com.jgoodies.binding.value
Class ConverterFactory.IntegerConverter

java.lang.Object
  extended by com.jgoodies.binding.value.ConverterFactory.IntegerConverter
All Implemented Interfaces:
BindingConverter<Integer,Integer>
Enclosing class:
ConverterFactory

public static final class ConverterFactory.IntegerConverter
extends Object
implements BindingConverter<Integer,Integer>

Converts Integers using a given multiplier.


Method Summary
 Integer sourceValue(Integer targetValue)
          Returns an Integer that is the target Integer divided by this converters' multiplier.
 Integer targetValue(Integer sourceValue)
          Returns an Integer that is the source Integer multiplied with this converters' multiplier.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

targetValue

public Integer targetValue(Integer sourceValue)
Returns an Integer that is the source Integer multiplied with this converters' multiplier.

Specified by:
targetValue in interface BindingConverter<Integer,Integer>
Parameters:
sourceValue - the value to convert
Returns:
the converted value

sourceValue

public Integer sourceValue(Integer targetValue)
Returns an Integer that is the target Integer divided by this converters' multiplier.

Specified by:
sourceValue in interface BindingConverter<Integer,Integer>
Parameters:
targetValue - the value to convert
Returns:
the converted value


Copyright © 2002-2013 JGoodies Software GmbH. All Rights Reserved.