(Method[] methods, String name)
| 545 | private abstract static class Wrapper<T> { |
| 546 | |
| 547 | public static List<Wrapper<Method>> wrap(Method[] methods, String name) { |
| 548 | List<Wrapper<Method>> result = new ArrayList<>(); |
| 549 | for (Method method : methods) { |
| 550 | if (method.getName().equals(name)) { |
| 551 | result.add(new MethodWrapper(method)); |
| 552 | } |
| 553 | } |
| 554 | return result; |
| 555 | } |
| 556 | |
| 557 | public static List<Wrapper<Constructor<?>>> wrap(Constructor<?>[] constructors) { |
| 558 | List<Wrapper<Constructor<?>>> result = new ArrayList<>(); |