1 31 32 package org.opencms.main; 33 34 import java.util.Map ; 35 36 49 public class CmsEvent { 50 51 52 private Map m_data; 53 54 55 private Integer m_type; 56 57 72 public CmsEvent(int type, Map data) { 73 74 m_type = new Integer (type); 75 m_data = data; 76 } 77 78 81 public boolean equals(Object obj) { 82 83 if (obj == this) { 84 return true; 85 } 86 if (obj instanceof CmsEvent) { 87 return m_type.equals(((CmsEvent)obj).getTypeInteger()); 88 } 89 return false; 90 } 91 92 97 public Map getData() { 98 99 return m_data; 100 } 101 102 114 public int getType() { 115 116 return m_type.intValue(); 117 } 118 119 124 public Integer getTypeInteger() { 125 126 return m_type; 127 } 128 129 132 public int hashCode() { 133 134 return m_type.hashCode(); 135 } 136 137 142 public String toString() { 143 144 return "CmsEvent['" + m_type + "']"; 145 } 146 } | Popular Tags |