Class Result<V,​E>


  • public class Result<V,​E>
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Result​(V value, E error)  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <V,​E>
      Result<V,​E>
      failure​(E error)  
      static <V,​E>
      Result<V,​E>
      success​(V value)  
      • Methods inherited from class java.lang.Object

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

      • Result

        public Result​(V value,
                      E error)
    • Method Detail

      • success

        public static <V,​E> Result<V,​E> success​(V value)
      • failure

        public static <V,​E> Result<V,​E> failure​(E error)