public boolean matchUserAgent ( String userAgent ) { if ( anyAgent ) return true ; if ( ! anyAgent && userAgent == null ) return false ; return userAgents . stream ( ) . anyMatch ( agent -> agent . equalsIgnoreCase ( userAgent ) ) ; }
Checks if the section is applicable for a given user agent .