Class Listener


  • public class Listener
    extends java.lang.Object
    Utility to send events to FRListener
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void onException​(FRListener<?> listener, java.lang.Exception value)
      Notify the Listener with failed result
      static <T> void onSuccess​(FRListener<T> listener, T value)
      Notify the Listener with success result
      • Methods inherited from class java.lang.Object

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

      • onSuccess

        public static <T> void onSuccess​(FRListener<T> listener,
                                         T value)
        Notify the Listener with success result
        Type Parameters:
        T - The Value Type
        Parameters:
        listener - The listener to listen for events
        value - The Value send with the event.
      • onException

        public static void onException​(FRListener<?> listener,
                                       java.lang.Exception value)
        Notify the Listener with failed result
        Parameters:
        listener - The listener to listen for events
        value - The Exception send with the event.