public int Compare(final String str){
  return ObjectName.compareTo(str);
}

public int Compare ( final String str ) { return ObjectName . compareTo ( str ) ; }
compare the name with the param string . return < 0 if objectname lexicographically < to str , > 0 if objectname > to str , or = 0 if objectname correspond to str .
