com.jgoodies.binding.value
Class ConverterFactory.LongConverter

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

public static final class ConverterFactory.LongConverter
extends Object
implements BindingConverter<Long,Long>

Converts Longs using a given multiplier.


Method Summary
 Long sourceValue(Long targetValue)
          Converts a Long using the multiplier and sets it as new value.
 Long targetValue(Long sourceValue)
          Converts the subject's value and returns a corresponding Long using the multiplier.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

targetValue

public Long targetValue(Long sourceValue)
Converts the subject's value and returns a corresponding Long using the multiplier.

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

sourceValue

public Long sourceValue(Long targetValue)
Converts a Long using the multiplier and sets it as new value.

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


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