@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((m_locale == null) ? 0 : m_locale.hashCode()); result = prime * result + ((m_urn == null) ? 0 : m_urn.hashCode()); return result; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; ResourceCacheKey other = (ResourceCacheKey) obj; if (m_locale == null) { if (other.m_locale != null) return false; } else if (!m_locale.equals(other.m_locale)) return false; if (m_urn == null) { if (other.m_urn != null) return false; } else if (!m_urn.equals(other.m_urn)) return false; return true; }