Package com.thoughtworks.excelparser.annotations

Examples of com.thoughtworks.excelparser.annotations.ExcelField


   */
  private <T> Map<Integer, Field> loadCache(Class<T> clazz) {
    Map<Integer, Field> fieldMap = new HashMap<Integer, Field>();
    Field[] fields = clazz.getDeclaredFields();
    for (Field field : fields) {
      ExcelField excelField = field.getAnnotation(ExcelField.class);
      if (excelField != null) {
        field.setAccessible(true);
        fieldMap.put(excelField.position(), field);
      }
    }
    excelMapCache.put(clazz.getName(), fieldMap);
    return fieldMap;
  }
View Full Code Here

TOP

Related Classes of com.thoughtworks.excelparser.annotations.ExcelField

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.