@Test public void testEquals() throws Exception { final EName a = new EName("http: final EName b = new EName("http: final EName c = new EName("http: final EName d = new EName("http: assertEquals(a, a); assertEquals(a, b); assertEquals(b, a); assertNotEquals(a, c); assertNotEquals(c, a); assertNotEquals(c, d); assertNotEquals(d, c); }
@Override public boolean equals(Object that) { return (this == that) || (that instanceof EName && eqFields((EName) that)); }
EName implements Serializable, Comparable<EName> { @Override public boolean equals(Object that) { return (this == that) || (that instanceof EName && eqFields((EName) that)); } }
EName implements Serializable, Comparable<EName> { @Override public boolean equals(Object that) { return (this == that) || (that instanceof EName && eqFields((EName) that)); } EName(String namespaceURI, String localName); }
EName implements Serializable, Comparable<EName> { @Override public boolean equals(Object that) { return (this == that) || (that instanceof EName && eqFields((EName) that)); } EName(String namespaceURI, String localName); static EName mk(String namespaceURI, String localName); static EName mk(String localName); String getNamespaceURI(); String getLocalName(); boolean hasNamespace(); @Override int hashCode(); @Override boolean equals(Object that); @Override String toString(); @Override int compareTo(EName o); static EName fromString(String strEName, String defaultNameSpace); static EName fromString(String strEName); }
EName implements Serializable, Comparable<EName> { @Override public boolean equals(Object that) { return (this == that) || (that instanceof EName && eqFields((EName) that)); } EName(String namespaceURI, String localName); static EName mk(String namespaceURI, String localName); static EName mk(String localName); String getNamespaceURI(); String getLocalName(); boolean hasNamespace(); @Override int hashCode(); @Override boolean equals(Object that); @Override String toString(); @Override int compareTo(EName o); static EName fromString(String strEName, String defaultNameSpace); static EName fromString(String strEName);  }