Class IntegerCallbackIdentifier

java.lang.Object
com.nt.udc.util.state.IntegerCallbackIdentifier
All Implemented Interfaces:
Callback

public class IntegerCallbackIdentifier extends Object implements 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 Details

    • IntegerCallbackIdentifier

      public IntegerCallbackIdentifier(IntegerCallback cb, int id)
      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

    • callback

      public void callback()
      This method is called when the receiver of this Object notifies it.
      Specified by:
      callback in interface Callback