@Test public void checkHashCode() { assertEquals(QNAME1.hashCode(), QNAME2.hashCode()); assertEquals(QNAME1.hashCode(), QNAME3.hashCode()); assertEquals(QNAME2.hashCode(), QNAME3.hashCode()); final HashSet<QName> qNames = new HashSet<>(); qNames.add(QNAME1); assertTrue(qNames.contains(QNAME2)); assertTrue(qNames.contains(QNAME3)); }
@Override public int hashCode() { return HashUtil.combineHashCodes(namespaceURI.hashCode(), localPart.hashCode()); }
QName implements DMNProperty { @Override public int hashCode() { return HashUtil.combineHashCodes(namespaceURI.hashCode(), localPart.hashCode()); } }
QName implements DMNProperty { @Override public int hashCode() { return HashUtil.combineHashCodes(namespaceURI.hashCode(), localPart.hashCode()); } QName();  QName(final BuiltInType type);  QName(final String namespaceURI,
                 final String localPart);  QName(final String namespaceURI,
                 final String localPart,
                 final String prefix); }
QName implements DMNProperty { @Override public int hashCode() { return HashUtil.combineHashCodes(namespaceURI.hashCode(), localPart.hashCode()); } QName();  QName(final BuiltInType type);  QName(final String namespaceURI,
                 final String localPart);  QName(final String namespaceURI,
                 final String localPart,
                 final String prefix); QName copy(); String getNamespaceURI(); String getLocalPart(); String getPrefix(); @Override String toString(); @Override boolean equals(final Object o); @Override int hashCode(); }
QName implements DMNProperty { @Override public int hashCode() { return HashUtil.combineHashCodes(namespaceURI.hashCode(), localPart.hashCode()); } QName();  QName(final BuiltInType type);  QName(final String namespaceURI,
                 final String localPart);  QName(final String namespaceURI,
                 final String localPart,
                 final String prefix); QName copy(); String getNamespaceURI(); String getLocalPart(); String getPrefix(); @Override String toString(); @Override boolean equals(final Object o); @Override int hashCode(); static final String NULL_NS_URI; static final String DEFAULT_NS_PREFIX; }