1 24 25 package org.objectweb.tribe.common; 26 27 import java.io.Serializable ; 28 29 35 public class GroupIdentifier implements Serializable 36 { 37 private String groupName; 38 39 43 public GroupIdentifier(String groupName) 44 { 45 this.groupName = groupName; 46 } 47 48 51 public String getGroupName() 52 { 53 return groupName; 54 } 55 56 59 public String toString() 60 { 61 return groupName; 62 } 63 64 67 public boolean equals(Object obj) 68 { 69 if (obj instanceof GroupIdentifier) 70 return groupName.equals(((GroupIdentifier) obj).getGroupName()); 71 else 72 return false; 73 } 74 75 78 public int hashCode() 79 { 80 return groupName.hashCode(); 81 } 82 83 } | Popular Tags |