protected List < ExecutableElement > getOrderedMethods ( TypeElement typeElement , Comparator < ExecutableElement > comparator ) { List < ExecutableElement > methods = ElementFilter . methodsIn ( typeElement . getEnclosedElements ( ) ) ; Collections . sort ( methods , comparator ) ; return methods ; }
Return methods from typeElement ordered by comparator