public boolean isExact ( Group group ) { if ( isAnyAgent ( ) && group . isAnyAgent ( ) ) return true ; if ( ( isAnyAgent ( ) && ! group . isAnyAgent ( ) || ( ! isAnyAgent ( ) && group . isAnyAgent ( ) ) ) ) return false ; return group . userAgents . stream ( ) . anyMatch ( sectionUserAgent -> userAgents . stream ( ) . anyMatch ( userAgent -> userAgent . equalsIgnoreCase ( sectionUserAgent ) ) ) ; }
Checks if group is exact in terms of user agents .