Class DeriveResults.CaseOfMatchers.PartialMatcher<A,​R>

    • Field Detail

      • error

        private final java.util.function.Function<DeriveMessage,​R> error
      • result

        private final java.util.function.Function<A,​R> result
    • Constructor Detail

      • PartialMatcher

        PartialMatcher​(DeriveResult<A> _deriveResult,
                       java.util.function.Function<DeriveMessage,​R> error,
                       java.util.function.Function<A,​R> result)
    • Method Detail

      • otherwise

        public final R otherwise​(java.util.function.Supplier<R> otherwise)
      • otherwise_

        public final R otherwise_​(R r)
      • otherwiseEmpty

        public final java.util.Optional<R> otherwiseEmpty()