Class Eithers.CasesMatchers.PartialMatcher<A,​B,​X>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.function.Function<A,​X> left  
      private java.util.function.Function<B,​X> right  
    • Constructor Summary

      Constructors 
      Constructor Description
      PartialMatcher​(java.util.function.Function<A,​X> left, java.util.function.Function<B,​X> right)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.function.Function<Either<A,​B>,​X> otherwise​(java.util.function.Supplier<X> otherwise)  
      java.util.function.Function<Either<A,​B>,​X> otherwise_​(X x)  
      java.util.function.Function<Either<A,​B>,​java.util.Optional<X>> otherwiseEmpty()  
      • Methods inherited from class java.lang.Object

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

      • left

        private final java.util.function.Function<A,​X> left
      • right

        private final java.util.function.Function<B,​X> right
    • Constructor Detail

      • PartialMatcher

        PartialMatcher​(java.util.function.Function<A,​X> left,
                       java.util.function.Function<B,​X> right)
    • Method Detail

      • otherwise

        public final java.util.function.Function<Either<A,​B>,​X> otherwise​(java.util.function.Supplier<X> otherwise)
      • otherwise_

        public final java.util.function.Function<Either<A,​B>,​X> otherwise_​(X x)
      • otherwiseEmpty

        public final java.util.function.Function<Either<A,​B>,​java.util.Optional<X>> otherwiseEmpty()