1 22 package org.jboss.test.webservice.jbws168; 23 24 public class UserType { 25 26 private String propB; 29 30 private String propC; 31 32 private String propA; 33 34 public UserType() { 35 } 36 37 public UserType(String propa, String propb, String propc) { 38 propA = propa; 39 propB = propb; 40 propC = propc; 41 } 42 43 public String getPropB() { 44 return propB; 45 } 46 47 public void setPropB(String propB) { 48 this.propB = propB; 49 } 50 51 public String getPropC() { 52 return propC; 53 } 54 55 public void setPropC(String propC) { 56 this.propC = propC; 57 } 58 59 public String getPropA() { 60 return propA; 61 } 62 63 public void setPropA(String propA) { 64 this.propA = propA; 65 } 66 67 public boolean equals(Object arg0) { 68 if (arg0 == this) return true; 69 if (!(arg0 instanceof UserType)) return false; 70 UserType ut = (UserType) arg0; 71 return ut.toString().equals(toString()); 72 } 73 74 public int hashCode() { 75 return toString().hashCode(); 76 } 77 78 public String toString() { 79 return "[propA=" + propA + ",propB=" + propB + ",propC=" + propC + "]"; 80 } 81 } 82 | Popular Tags |