public interface Actions<T>
Actions. Inspired by jQuery's Callbacks.
All operations on an actions are exception-safe.| Modifier and Type | Interface and Description |
|---|---|
static class |
Actions.Options
Options to create an Actions.
|
| Modifier and Type | Method and Description |
|---|---|
Actions<T> |
add(Action<T> action)
Adds an action.
|
Actions<T> |
disable()
Disables any operation on the actions.
|
boolean |
disabled()
Determines if the actions has been disabled.
|
Actions<T> |
empty()
Removes all of the actions.
|
Actions<T> |
fire()
Fire all of the actions.
|
Actions<T> |
fire(T data)
Fire all of the actions with the given value.
|
boolean |
fired()
Determines if the actions have been called at least once.
|
boolean |
has()
Determines if the actions contains an action.
|
boolean |
has(Action<T> action)
Determines whether the actions contains the specified action.
|
Actions<T> |
remove(Action<T> action)
Removes an action.
|
Actions<T> disable()
boolean disabled()
boolean fired()
boolean has()
Copyright 2014, The Vibe Project