Class MessagedResponse<T>


  • public class MessagedResponse<T>
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      MessagedResponse​(T response, java.lang.String none)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getEither()
      Gets either the response (as a string) or the none message, whichever is available
      java.lang.String getNone()
      Gets the "none" message
      T getResponse()
      Gets the response from the method.
      • Methods inherited from class java.lang.Object

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

      • MessagedResponse

        public MessagedResponse​(T response,
                                java.lang.String none)
    • Method Detail

      • getResponse

        public T getResponse()
        Gets the response from the method.
        Returns:
        The response. Null if there is a "none" message
      • getNone

        public java.lang.String getNone()
        Gets the "none" message
        Returns:
        The none message. null if there is a response.
      • getEither

        public java.lang.String getEither()
        Gets either the response (as a string) or the none message, whichever is available
        Returns:
        A string