Class WatchEvent
- java.lang.Object
-
- java.util.EventObject
-
- com.gurock.smartinspect.packets.watch.WatchEvent
-
- All Implemented Interfaces:
Serializable
public final class WatchEvent extends EventObject
This class is used by the SmartInspectListener.onWatch event of the SmartInspect class. It has only one public class member named getWatch. This member is a method, which just returns the sent packet.This class is fully threadsafe.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description WatchEvent(Object source, Watch watch)Creates and initializes a WatchEvent instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WatchgetWatch()Returns the Watch packet, which has just been sent.-
Methods inherited from class java.util.EventObject
getSource, toString
-
-
-
-
Method Detail
-
getWatch
public Watch getWatch()
Returns the Watch packet, which has just been sent.- Returns:
- The Watch packet which has just been sent
-
-