1 57 58 package inout.wsiftypes; 59 60 import java.io.Serializable ; 61 62 public class Mutablestring implements Serializable { 63 private String str; 64 public Mutablestring () { } 65 public Mutablestring (String str) { this.str = str; } 66 public String getStr() { return str; } 67 public void setStr(String str) { this.str = str; } 68 public String toString() { return str; } 69 70 public boolean equals(Mutablestring other) 71 { 72 if (other==null) return false; 73 if (str==null) 74 { 75 if (other.getStr()==null) return true; 76 return false; 77 } 78 if (other.getStr()==null) return false; 79 if (str.equals(other.getStr())) return true; 80 return false; 81 } 82 } 83 | Popular Tags |