Creates a ConfigType from an arbitrary Type @param type The Type @return A ConfigType representation of the Type
(Type type)
| 24 | * @return A ConfigType representation of the Type |
| 25 | */ |
| 26 | public static ConfigType<?> create(Type type) { |
| 27 | if (type instanceof Class) { |
| 28 | return create((Class<?>) type, new ArrayList<>()); |
| 29 | } |
| 30 | return create(type.getTypeName()); |
| 31 | } |
| 32 | |
| 33 | /** |
| 34 | * Gets the ConfigType of a specific Field |
no test coverage detected