public abstract class CallbackMsg extends Object
Modifier | Constructor and Description |
---|---|
protected |
CallbackMsg()
Initializes a new instance of the
CallbackMsg class. |
Modifier and Type | Method and Description |
---|---|
<T extends CallbackMsg> |
handle(Class<T> type,
ActionT<T> handler)
Invokes the specified handler delegate if the callback matches the type parameter.
|
<T extends CallbackMsg> |
isType(Class<T> type)
Determines whether this callback is a certain type.
|
protected CallbackMsg()
CallbackMsg
class.public <T extends CallbackMsg> boolean isType(Class<T> type)
type
- The type to check against.public <T extends CallbackMsg> void handle(Class<T> type, ActionT<T> handler) throws InvalidParameterException
type
- The type to check against.handler
- The handler to invoke.InvalidParameterException
- handler is null.Copyright © 2012. All Rights Reserved.