Interface CapabilitiesFilter

  • All Superinterfaces:
    java.util.function.Function<java.util.Map<java.lang.String,​java.lang.Object>,​java.util.Map<java.lang.String,​java.lang.Object>>
    All Known Implementing Classes:
    ChromeFilter, EdgeFilter, FirefoxFilter, InternetExplorerFilter, OperaFilter, SafariFilter
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface CapabilitiesFilter
    extends java.util.function.Function<java.util.Map<java.lang.String,​java.lang.Object>,​java.util.Map<java.lang.String,​java.lang.Object>>
    Takes a stream of capabilities and extracts those that are specific to a browser.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.Map<java.lang.String,​java.lang.Object> apply​(java.util.Map<java.lang.String,​java.lang.Object> capabilities)
      Take a map of capabilities and extract those specific to a browser.
      • Methods inherited from interface java.util.function.Function

        andThen, compose
    • Method Detail

      • apply

        java.util.Map<java.lang.String,​java.lang.Object> apply​(java.util.Map<java.lang.String,​java.lang.Object> capabilities)
        Take a map of capabilities and extract those specific to a browser.
        Specified by:
        apply in interface java.util.function.Function<java.util.Map<java.lang.String,​java.lang.Object>,​java.util.Map<java.lang.String,​java.lang.Object>>
        Returns:
        a Map of capabilities if any match, or null otherwise.