@Test public void testEquals() { Assert.assertTrue(ciqn1.equals(ciqn2)); Assert.assertFalse(ciqn1.equals(new QName("type", "feature"))); }
@Override public boolean equals(final Object obj) { if (obj instanceof CaseInsensitiveQName) { final CaseInsensitiveQName other = (CaseInsensitiveQName) obj; return name.equals(other.name); } return false; }
CaseInsensitiveQName implements Comparable<CaseInsensitiveQName> { @Override public boolean equals(final Object obj) { if (obj instanceof CaseInsensitiveQName) { final CaseInsensitiveQName other = (CaseInsensitiveQName) obj; return name.equals(other.name); } return false; } }
CaseInsensitiveQName implements Comparable<CaseInsensitiveQName> { @Override public boolean equals(final Object obj) { if (obj instanceof CaseInsensitiveQName) { final CaseInsensitiveQName other = (CaseInsensitiveQName) obj; return name.equals(other.name); } return false; } CaseInsensitiveQName(final String type, final String feature); }
CaseInsensitiveQName implements Comparable<CaseInsensitiveQName> { @Override public boolean equals(final Object obj) { if (obj instanceof CaseInsensitiveQName) { final CaseInsensitiveQName other = (CaseInsensitiveQName) obj; return name.equals(other.name); } return false; } CaseInsensitiveQName(final String type, final String feature); @Override int compareTo(final CaseInsensitiveQName other); @Override boolean equals(final Object obj); String getLocalPart(); String getNamespaceURI(); @Override int hashCode(); @Override String toString(); }
CaseInsensitiveQName implements Comparable<CaseInsensitiveQName> { @Override public boolean equals(final Object obj) { if (obj instanceof CaseInsensitiveQName) { final CaseInsensitiveQName other = (CaseInsensitiveQName) obj; return name.equals(other.name); } return false; } CaseInsensitiveQName(final String type, final String feature); @Override int compareTo(final CaseInsensitiveQName other); @Override boolean equals(final Object obj); String getLocalPart(); String getNamespaceURI(); @Override int hashCode(); @Override String toString();  }