Class Result<V,​S>

  • Type Parameters:
    V - The type of value that the result is
    S - The state of the return for example this may be a an enum that Provides state values such as NONE, FAILURE, etc..

    public class Result<V,​S>
    extends Object
    • Field Summary

      Modifier and Type Field Description
      S state  
      V value  
    • Constructor Summary

      Constructor Description
      Result​(V value, S state)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      String toString()  
      • Methods inherited from class Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • value

        public final V value
      • state

        public final S state
    • Constructor Detail

      • Result

        public Result​(V value,
                      S state)
    • Method Detail

      • toString

        public String toString()
        toString in class Object