Class Result.IssueTransformer<T,​I>

  • Enclosing class:
    Result<T,​I>

    public static class Result.IssueTransformer<T,​I>
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T orElse​(java.util.function.Function<java.util.List<I>,​T> issueTransformation)
      Transforms the issues into a returned value.
      • Methods inherited from class java.lang.Object

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

      • orElse

        public T orElse​(java.util.function.Function<java.util.List<I>,​T> issueTransformation)
        Transforms the issues into a returned value.
        Parameters:
        issueTransformation - Function to map the issues, if no upstream value exist.
        Returns:
        an object, the result of the mapping of the issues.