extensions/net.sf.basedb.reggie/trunk/src/net/sf/basedb/reggie/converter/ValueConverter.java

Code
Comments
Other
Rev Date Author Line
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 4   Convert values from one type of object to another.
1333 05 Apr 11 nicklas 5   @author nicklas
1333 05 Apr 11 nicklas 6   @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 11     Convert the value of type F to a value of type T.
1333 05 Apr 11 nicklas 12     @param value The value (which may be null)
1333 05 Apr 11 nicklas 13     @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 }