public boolean matchesLocale ( String loc ) { return getLocale ( ) == null || ( getLocale ( ) . isPresent ( ) && getLocale ( ) . get ( ) . startsWith ( loc ) ) ; }
Returns true if the information matches the specified locale .