public boolean hasCategory(String category){
  if (category == null) {
    return false;
  }
  return categories.contains(StringUtil.toLowerCase(category));
}

public boolean hasCategory ( String category ) { if ( category == null ) { return false ; } return categories . contains ( StringUtil . toLowerCase ( category ) ) ; }
checks if this entry contains the given category .
