protected final Map < String , Field > getFieldMap ( Class clazz ) { Map < String , Field > fieldList = new HashMap < String , Field > ( ) ; for ( FieldEntry entry : getAllFields ( clazz ) ) { Field field = entry . getValue ( ) ; fieldList . put ( field . getName ( ) , field ) ; } return fieldList ; }
Returns a map of the fields which belongs to the given class with field name as key .