Package com.marcnuri.yakc.api
Class WatchEvent<T>
- java.lang.Object
-
- com.marcnuri.yakc.api.WatchEvent<T>
-
public class WatchEvent<T> extends java.lang.ObjectClass containing an object returned during a Watch event and theWatchEvent.Typeof event that produced it.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWatchEvent.Type
-
Constructor Summary
Constructors Constructor Description WatchEvent()WatchEvent(WatchEvent.Type type, T object)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)TgetObject()WatchEvent.TypegetType()inthashCode()voidsetObject(T object)voidsetType(WatchEvent.Type type)java.lang.StringtoString()
-
-
-
Constructor Detail
-
WatchEvent
public WatchEvent(WatchEvent.Type type, T object)
-
WatchEvent
public WatchEvent()
-
-
Method Detail
-
getType
public WatchEvent.Type getType()
-
getObject
public T getObject()
-
setType
public void setType(WatchEvent.Type type)
-
setObject
public void setObject(T object)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-