1 17 package org.apache.ws.jaxme.xs.xml; 18 19 23 public class XsID { 24 private String id; 25 26 public XsID(String pId) { 27 if (pId == null) { 28 throw new NullPointerException ("An ID must not be null"); 29 } 30 id = pId; 31 } 32 33 public boolean equals(Object o) { 34 return o != null && o instanceof XsID && id.equals(((XsID) o).id); 35 } 36 37 public int hashCode() { 38 return id.hashCode(); 39 } 40 } 41 | Popular Tags |