1 22 package org.jboss.test.hibernate.timers.interfaces; 23 24 import java.io.Serializable ; 25 import java.util.Properties ; 26 27 33 public class Info implements Serializable 34 { 35 private static final long serialVersionUID = 1L; 36 37 private Properties props; 38 39 public Info() 40 { 41 } 42 public Info(Properties props) 43 { 44 this.props = props; 45 } 46 47 public Properties getProps() 48 { 49 return props; 50 } 51 public void setProps(Properties props) 52 { 53 this.props = props; 54 } 55 56 public int hashCode() 57 { 58 return props.hashCode(); 59 } 60 public boolean equals(Object o) 61 { 62 Info i = (Info) o; 63 return props.equals(i.props); 64 } 65 66 67 public String toString() 68 { 69 final StringBuffer sb = new StringBuffer (); 70 sb.append("Info"); 71 sb.append("{props="); 72 sb.append(props); 73 sb.append('}'); 74 return sb.toString(); 75 } 76 } 77 | Popular Tags |