1 22 package org.jboss.test.webservice.marshalltest.types; 23 24 import java.util.Arrays ; 25 26 public class Bean implements java.io.Serializable 27 { 28 static final long serialVersionUID = 6584528323279029461L; 29 private int x; 30 private int y; 31 private byte[] base64; 32 33 public Bean() 34 { 35 } 36 37 public int getX() 38 { 39 return x; 40 } 41 42 public void setX(int x) 43 { 44 this.x = x; 45 } 46 47 public int getY() 48 { 49 return y; 50 } 51 52 public void setY(int y) 53 { 54 this.y = y; 55 } 56 57 public byte[] getBase64() 58 { 59 return base64; 60 } 61 62 public void setBase64(byte[] base64) 63 { 64 this.base64 = base64; 65 } 66 67 public boolean equals(Object o) 68 { 69 if (this == o) return true; 70 if (!(o instanceof Bean)) return false; 71 72 final Bean bean = (Bean)o; 73 74 if (x != bean.x) return false; 75 if (y != bean.y) return false; 76 if (!Arrays.equals(base64, bean.base64)) return false; 77 78 return true; 79 } 80 81 public int hashCode() 82 { 83 int result; 84 result = x; 85 result = 29 * result + y; 86 return result; 87 } 88 89 public String toString() 90 { 91 String str = (base64 != null ? new String (base64) : null); 92 return "[x=" + x + ",y=" + y + ",base64=" + str + "]"; 93 } 94 } 95 | Popular Tags |