Interface WithFilter<T>

  • Type Parameters:
    T - element type to find
    All Known Subinterfaces:
    AnnotationStore, GroupStore, Item

    public interface WithFilter<T>
    General interface for filtering elements to find matches.
    • Method Detail

      • filter

        Stream<T> filter​(Filter<T> filter)
        Filter to many matching elements
        Parameters:
        filter - the test to filter with
        Returns:
        stream of matching annotations
      • find

        default Optional<T> find​(Filter<T> filter)
        Find a single matching element
        Parameters:
        filter - the test to filter with
        Returns:
        single of matching annotation (or empty)