1 23 package com.sun.ejb.containers; 24 25 import java.io.Serializable ; 26 27 public class TimerPrimaryKey implements Serializable 28 { 29 public String timerId; 30 31 public TimerPrimaryKey() {} 32 33 public TimerPrimaryKey(String pk) 34 { 35 timerId = pk; 36 } 37 38 public String getTimerId() { 39 return timerId; 40 } 41 42 public boolean equals(Object other) 43 { 44 if ( other instanceof TimerPrimaryKey ) { 45 TimerPrimaryKey tpk = (TimerPrimaryKey) other; 46 return (tpk.timerId.equals(timerId)); 47 } 48 return false; 49 } 50 51 public int hashCode() 52 { 53 return timerId.hashCode(); 54 } 55 56 public String toString() 57 { 58 return timerId; 59 } 60 } 61 | Popular Tags |