@Test public void testCompare(){ NameImpl scoped1 = new NameImpl("hello","world"); NameImpl scoped2 = new NameImpl("hello","fred"); NameImpl fred = new NameImpl("world"); assertTrue( 0 == scoped1.compareTo(scoped1)); assertTrue( 0 == scoped2.compareTo(scoped2)); assertTrue( 0 == fred.compareTo(fred)); assertTrue( scoped1.compareTo(scoped2) > 0 ); assertTrue( scoped2.compareTo(scoped1) < 0 ); assertTrue( scoped2.compareTo(scoped1) < 0 ); }
public int compareTo(NameImpl other) { if( other == null ){ return 1; } return getURI().compareTo(other.getURI()); }
NameImpl implements org.opengis.feature.type.Name, Serializable, Comparable<NameImpl> { public int compareTo(NameImpl other) { if( other == null ){ return 1; } return getURI().compareTo(other.getURI()); } }
NameImpl implements org.opengis.feature.type.Name, Serializable, Comparable<NameImpl> { public int compareTo(NameImpl other) { if( other == null ){ return 1; } return getURI().compareTo(other.getURI()); } NameImpl(String local);  NameImpl(String namespace, String local);  NameImpl(String namespace, String separator, String local);  NameImpl( javax.xml.namespace.QName qName ); }
NameImpl implements org.opengis.feature.type.Name, Serializable, Comparable<NameImpl> { public int compareTo(NameImpl other) { if( other == null ){ return 1; } return getURI().compareTo(other.getURI()); } NameImpl(String local);  NameImpl(String namespace, String local);  NameImpl(String namespace, String separator, String local);  NameImpl( javax.xml.namespace.QName qName ); boolean isGlobal(); String getSeparator(); String getNamespaceURI(); String getLocalPart(); String getURI(); @Override int hashCode(); boolean equals(Object obj); String toString(); int compareTo(NameImpl other); }
NameImpl implements org.opengis.feature.type.Name, Serializable, Comparable<NameImpl> { public int compareTo(NameImpl other) { if( other == null ){ return 1; } return getURI().compareTo(other.getURI()); } NameImpl(String local);  NameImpl(String namespace, String local);  NameImpl(String namespace, String separator, String local);  NameImpl( javax.xml.namespace.QName qName ); boolean isGlobal(); String getSeparator(); String getNamespaceURI(); String getLocalPart(); String getURI(); @Override int hashCode(); boolean equals(Object obj); String toString(); int compareTo(NameImpl other);  }