how to get the attribute of a class passed into a method java code example
Example: java get attributes from class
List<Field> fields = Arrays.asList(filter.getClass().getDeclaredFields());
List<Field> fields = Arrays.asList(filter.getClass().getDeclaredFields());