public static List < TableColumnInfo > create ( @ NotNull final Class < ? > clasz , @ NotNull final Locale locale ) { Contract . requireArgNotNull ( "clasz" , clasz ) ; Contract . requireArgNotNull ( "locale" , locale ) ; final List < TableColumnInfo > list = new ArrayList < TableColumnInfo > ( ) ; final Field [ ] fields = clasz . getDeclaredFields ( ) ; for ( int i = 0 ; i < fields . length ; i ++ ) { final TableColumnInfo tableColumnInfo = create ( fields [ i ] , locale ) ; if ( tableColumnInfo != null ) { list . add ( tableColumnInfo ) ; } } Collections . sort ( list ) ; return list ; }
Return a list of table column informations for the given class .