in src/main/java/com/epam/digital/data/platform/restapi/core/utils/FieldProcessingUtils.java [93:106]
private static String defineFieldType(Class<?> fieldType) {
// check if the current field is of type com.epam.digital.data.platform.model.core.kafka.File
if (File.class.equals(fieldType)) {
return FIELD_TYPE_FILE;
// check if the current field represents an array class and does not consist of primitive elements
} else if (fieldType.isArray() && !fieldType.getComponentType().isPrimitive()) {
return FIELD_TYPE_ARRAY;
// check if the current field is of type java.util.List
} else if (List.class.equals(fieldType)) {
return FIELD_TYPE_LIST;
} else {
return FIELD_TYPE_OTHER;
}
}