Package com.tenio.event.external
Class TSubscriber
- java.lang.Object
-
- com.tenio.event.external.TSubscriber
-
public final class TSubscriber extends java.lang.Object
An object which creates a mapping between an event type with a subscriber.- Author:
- kong
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ISubscriber
getSub()
TEvent
getType()
boolean
isType(TEvent type)
static TSubscriber
newInstance(TEvent type, ISubscriber sub)
-
-
-
Method Detail
-
newInstance
public static TSubscriber newInstance(TEvent type, ISubscriber sub)
-
isType
public boolean isType(TEvent type)
- Parameters:
type
- the comparison event value- Returns:
- Return true if they are equal, false otherwise
-
getSub
public ISubscriber getSub()
- Returns:
- see
ISubscriber
-
-