Class ComposedCallbackBuilder


  • @Deprecated
    public class ComposedCallbackBuilder
    extends java.lang.Object
    Deprecated.
    This class is obsolete and kept around for backward compatibility only.
    A builder for composed callbacks.

    To compose a series of callbacks, you must first create an instance of this class, add all required callbacks, and finally get the composed callback, which will invoke (in order) the callbacks.

    • Constructor Summary

      Constructors 
      Constructor Description
      ComposedCallbackBuilder()
      Deprecated.
      Creates a new, empty callback composer.
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void add​(int position, Callback callback)
      Deprecated.
      Adds a new callback to this builder at a specified position.
      void add​(Callback callback)
      Deprecated.
      Adds a new callback to this builder.
      Callback compose()
      Deprecated.
      Returns the composed callback produced by this builder.
      boolean isEmpty()
      Deprecated.
      Checks whether this callback builder is empty.
      int size()
      Deprecated.
      Returns the number of callbacks in this builder.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ComposedCallbackBuilder

        public ComposedCallbackBuilder()
        Deprecated.
        Creates a new, empty callback composer.
    • Method Detail

      • add

        public void add​(int position,
                        Callback callback)
        Deprecated.
        Adds a new callback to this builder at a specified position.
        Parameters:
        position - a position in the current callback list.
        callback - a callback.
      • add

        public void add​(Callback callback)
        Deprecated.
        Adds a new callback to this builder.
        Parameters:
        callback - a callback.
      • isEmpty

        public boolean isEmpty()
        Deprecated.
        Checks whether this callback builder is empty.
        Returns:
        true if this callback builder is empty.
      • size

        public int size()
        Deprecated.
        Returns the number of callbacks in this builder.
        Returns:
        the number of callbacks in this composer.
      • compose

        public Callback compose()
        Deprecated.
        Returns the composed callback produced by this builder.
        Returns:
        a composed callback.