Class Callback.Map<T,​U>

  • All Implemented Interfaces:
    Callback<T>
    Enclosing interface:
    Callback<T>

    public abstract static class Callback.Map<T,​U>
    extends java.lang.Object
    implements Callback<T>
    • Nested Class Summary

    • Constructor Summary

      Constructors 
      Constructor Description
      Map​(Callback<U> callback)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract U map​(T result)  
      void onError​(ErrorInfo reason)
      Called when the associated operation completes with an error.
      void onSuccess​(T result)
      Called when the associated operation completes successfully,
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • map

        public abstract U map​(T result)
      • onSuccess

        public void onSuccess​(T result)
        Description copied from interface: Callback
        Called when the associated operation completes successfully,
        Specified by:
        onSuccess in interface Callback<T>
      • onError

        public void onError​(ErrorInfo reason)
        Description copied from interface: Callback
        Called when the associated operation completes with an error.
        Specified by:
        onError in interface Callback<T>
        Parameters:
        reason - information about the error.