Gets the ConfigType of a specific Field @param field The field @return A ConfigType for the field
(Field field)
| 37 | * @return A ConfigType for the field |
| 38 | */ |
| 39 | public static ConfigType<?> get(Field field) { |
| 40 | return create(field.getGenericType()); |
| 41 | } |
| 42 | |
| 43 | private static ConfigType<?> create(String typeName) { |
| 44 | try { |