1333 |
05 Apr 11 |
nicklas |
1 |
package net.sf.basedb.reggie.converter; |
1333 |
05 Apr 11 |
nicklas |
2 |
|
1333 |
05 Apr 11 |
nicklas |
3 |
/** |
1333 |
05 Apr 11 |
nicklas |
Convert values from one type of object to another. |
1333 |
05 Apr 11 |
nicklas |
@author nicklas |
1333 |
05 Apr 11 |
nicklas |
@since 1.2 |
1333 |
05 Apr 11 |
nicklas |
7 |
*/ |
1333 |
05 Apr 11 |
nicklas |
8 |
public interface ValueConverter<F, T> |
1333 |
05 Apr 11 |
nicklas |
9 |
{ |
1333 |
05 Apr 11 |
nicklas |
10 |
/** |
1333 |
05 Apr 11 |
nicklas |
Convert the value of type F to a value of type T. |
1333 |
05 Apr 11 |
nicklas |
@param value The value (which may be null) |
1333 |
05 Apr 11 |
nicklas |
@return The converted value (which may be null) |
1333 |
05 Apr 11 |
nicklas |
14 |
*/ |
1333 |
05 Apr 11 |
nicklas |
15 |
public T convert(F value); |
1333 |
05 Apr 11 |
nicklas |
16 |
} |