/** * Returns the first {@link NamingSystem} instances that match the provided {@link Predicate} * * @param id ID of a NamingSystem bundle * @param predicate predicate selecting a naming system * @return {@link NamingSystem} instance that match the provided {@link Predicate} */ default Optional<NamingSystem> findFirstNamingSystem(String id, Predicate<? super NamingSystem> predicate) { return findNamingSystems(id, predicate).findFirst(); }
/** * Returns the first {@link NamingSystem} instances that match the provided {@link Predicate} * * @param id ID of a NamingSystem bundle * @param predicate predicate selecting a naming system * @return {@link NamingSystem} instance that match the provided {@link Predicate} */ default Optional<NamingSystem> findFirstNamingSystem(String id, Predicate<? super NamingSystem> predicate) { return findNamingSystems(id, predicate).findFirst(); }