public List < DetailParam > getParameterFromClassWithAnnotation ( Class < ? > baseClass , Class < ? > annotationClass ) { List < DetailParam > params = new ArrayList <> ( ) ; Arrays . stream ( baseClass . getDeclaredMethods ( ) ) . forEach ( method -> params . addAll ( this . getParameterFromMethodWithAnnotation ( baseClass , method , annotationClass ) ) ) ; return params ; }
Gets parameter from class with annotation .