org.opennms.netmgt.mock
Class EventWrapper

java.lang.Object
  extended by org.opennms.netmgt.mock.EventWrapper

public class EventWrapper
extends Object

Need this class because Event doesn't properly implement hashCode

Version:
$Id: $
Author:
ranger

Constructor Summary
EventWrapper(Event event)
          Constructor for EventWrapper.
 
Method Summary
 boolean equals(Object o)
          
 Event getEvent()
          getEvent
 int hashCode()
          hashCode
 String toString()
          toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EventWrapper

public EventWrapper(Event event)

Constructor for EventWrapper.

Parameters:
event - a Event object.
Method Detail

equals

public boolean equals(Object o)

Overrides:
equals in class Object

getEvent

public Event getEvent()

getEvent

Returns:
a Event object.

hashCode

public int hashCode()

hashCode

Overrides:
hashCode in class Object
Returns:
a int.

toString

public String toString()

toString

Overrides:
toString in class Object
Returns:
a String object.


Copyright © 2011. All Rights Reserved.