View Javadoc
1   package org.csveed.bean.conversion;
2   
3   /**
4   * Stateless converter from String to Object
5   * @param <K> the Object to convert the String to
6   * @author Robert Bor
7   */
8   public interface Converter<K> {
9   
10      K fromString(String text) throws Exception;
11  
12      String toString(K value) throws Exception;
13  
14      String infoOnType();
15  
16      Class<K> getType();
17  
18  }