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

Code
Comments
Other
Rev Date Author Line
2303 02 Apr 14 olle 1 package net.sf.basedb.labenv.converter;
2303 02 Apr 14 olle 2
2303 02 Apr 14 olle 3 /**
2303 02 Apr 14 olle 4   Convert values from one type of object to another.
2303 02 Apr 14 olle 5   @author nicklas
2303 02 Apr 14 olle 6   @since 1.0
2303 02 Apr 14 olle 7 */
2303 02 Apr 14 olle 8 public interface ValueConverter<F, T>
2303 02 Apr 14 olle 9 {
2303 02 Apr 14 olle 10   /**
2303 02 Apr 14 olle 11     Convert the value of type F to a value of type T.
2303 02 Apr 14 olle 12     @param value The value (which may be null)
2303 02 Apr 14 olle 13     @return The converted value (which may be null)
2303 02 Apr 14 olle 14   */
2303 02 Apr 14 olle 15   public T convert(F value);
2303 02 Apr 14 olle 16 }