Filter children by type @param type The type name. must not be null @return The matching children
(String type)
| 232 | * @return The matching children |
| 233 | */ |
| 234 | public List<PluginInfo> getChildren(String type) { |
| 235 | if (children.isEmpty()) return children; |
| 236 | List<PluginInfo> result = new ArrayList<>(); |
| 237 | for (PluginInfo child : children) if (type.equals(child.type)) result.add(child); |
| 238 | return result; |
| 239 | } |
| 240 | |
| 241 | public static final PluginInfo EMPTY_INFO = |
| 242 | new PluginInfo("", Map.of(), new NamedList<>(), List.of()); |