Package com.nt.udc.util.state
Class IntegerCallbackIdentifier
java.lang.Object
com.nt.udc.util.state.IntegerCallbackIdentifier
- All Implemented Interfaces:
Callback
This class provides a interface between a Callback Object, and a
IntegerCallback Object. The user should instantiate this Object
with the Object that requires notification of the Callback event.
Then, when the Callback event occurs, this Object will notify
the given IntegerCallback with the given id.
-
Constructor Summary
ConstructorsConstructorDescriptionIntegerCallbackIdentifier
(IntegerCallback cb, int id) Constructs the IntegerCallbackIdentifier with the IntegerCallback to notify, and the id with which to give. -
Method Summary
Modifier and TypeMethodDescriptionvoid
callback()
This method is called when the receiver of this Object notifies it.
-
Constructor Details
-
IntegerCallbackIdentifier
Constructs the IntegerCallbackIdentifier with the IntegerCallback to notify, and the id with which to give.- Parameters:
id
- ID to notify with.IntegerCallback
- Notified when this Object is notified.
-
-
Method Details