1 7 8 package java.rmi.activation; 9 10 import java.rmi.server.UID ; 11 12 31 public class ActivationGroupID implements java.io.Serializable { 32 35 private ActivationSystem system; 36 37 40 private UID uid = new UID (); 41 42 43 private static final long serialVersionUID = -1648432278909740833L; 44 45 51 public ActivationGroupID(ActivationSystem system) { 52 this.system = system; 53 } 54 55 60 public ActivationSystem getSystem() { 61 return system; 62 } 63 64 72 public int hashCode() { 73 return uid.hashCode(); 74 } 75 76 88 public boolean equals(Object obj) { 89 if (this == obj) { 90 return true; 91 } else if (obj instanceof ActivationGroupID ) { 92 ActivationGroupID id = (ActivationGroupID )obj; 93 return (uid.equals(id.uid) && system.equals(id.system)); 94 } else { 95 return false; 96 } 97 } 98 } 99 | Popular Tags |