1 22 package org.jboss.test.iiopperf.interfaces; 23 24 29 public class CMFoo implements java.io.Serializable  30 { 31 public int i; 32 public String s; 33 34 public CMFoo(int i, String s) 35 { 36 this.i = i; 37 this.s = s; 38 } 39 40 public String toString() 41 { 42 return "CMFoo(" + i + ", \"" + s + "\")"; 43 } 44 45 public boolean equals(Object o) 46 { 47 return (o instanceof CMFoo) && (((CMFoo)o).i == i) 48 && (((CMFoo)o).s.equals(s)); 49 } 50 51 private synchronized void writeObject(java.io.ObjectOutputStream s) 52 throws java.io.IOException { 53 s.defaultWriteObject(); 54 } 55 } 56 | Popular Tags |