View Javadoc
1   package org.csveed.bean.conversion;
2   
3   public abstract class AbstractConverter<K> implements Converter<K> {
4   
5       private Class<K> clazz;
6   
7       public AbstractConverter(Class<K> clazz) {
8           this.clazz = clazz;
9       }
10  
11      @Override
12      public String infoOnType() {
13          return getType().getName();
14      }
15  
16      @Override
17      public Class<K> getType() {
18          return clazz;
19      }
20  
21  }