Code example for Locale

Methods: equals

0
 
      if (!attributeName.equals(that.attributeName))
      { 
        return false; 
      } 
      if (!locale.equals(that.locale))
      { 
        return false; 
      } 
 
      return true; 
    } 
 
    public int hashCode() 
    { 
      int result = locale.hashCode();
      result = 31 * result + attributeName.hashCode();
      return result;
    } 
  }