@Override public boolean equals(final Object o) { if (o == null) return false; if (o instanceof ListenerKeeper) { final ListenerKeeper keeper = (ListenerKeeper) o; return m_listener.equals(keeper.m_listener) && (m_ueiList == null ? keeper.m_ueiList == null : m_ueiList.equals(keeper.m_ueiList)); } return false; }
public void sendEventIfAppropriate(final Event e) { if (eventMatches(e)) { m_listener.onEvent(e); } }