Interface Scanner<S,​R>

  • Type Parameters:
    S - the type of scanned source
    R - the type of scan result

    public interface Scanner<S,​R>
    Since:
    1.0.0
    Author:
    Mercy
    See Also:
    Scanner
    • Method Detail

      • scan

        @Nonnull
        java.util.Set<R> scan​(S source)
                       throws java.lang.IllegalArgumentException,
                              java.lang.IllegalStateException
        Scan source to calculate result set
        Parameters:
        source - scanned source
        Returns:
        result set , non-null
        Throws:
        java.lang.IllegalArgumentException - scanned source is not legal
        java.lang.IllegalStateException - scanned source's state is not valid
      • scan

        @Nonnull
        java.util.Set<R> scan​(S source,
                              Filter<R> filter)
                       throws java.lang.IllegalArgumentException,
                              java.lang.IllegalStateException
        Scan source to calculate result set with Filter
        Parameters:
        source - scanned source
        filter - filter to accept result
        Returns:
        result set , non-null
        Throws:
        java.lang.IllegalArgumentException - scanned source is not legal
        java.lang.IllegalStateException - scanned source's state is not valid