protected final Collection < FieldEntry > getFields ( Class clazz ) { LinkedList < FieldEntry > fieldList = getAllFields ( clazz ) ; Collections . sort ( fieldList , new Comparator < FieldEntry > ( ) { public int compare ( FieldEntry o1 , FieldEntry o2 ) { return o1 . compareTo ( o2 ) ; } } ) ; return fieldList ; }
Returns an ordered list of the fields which belongs to the given class .