1 22 package org.jboss.test.webservice.jbws414; 23 24 public class St 25 { 26 private Interface ref; 27 28 public St() 29 { 30 } 31 32 public St(Interface ref) 33 { 34 this.ref = ref; 35 } 36 37 public Interface getRef() 38 { 39 return ref; 40 } 41 42 public void setRef(Interface ref) 43 { 44 this.ref = ref; 45 } 46 47 public boolean equals(Object obj) 48 { 49 if (obj instanceof St == false) 50 return false; 51 52 St other = (St)obj; 53 return ref != null && ref.equals(other.ref) || ref == null && other.ref == null; 54 } 55 56 public String toString() 57 { 58 return ref.toString(); 59 } 60 } 61 | Popular Tags |