Class Either3<T1,​T2,​T3>


  • public class Either3<T1,​T2,​T3>
    extends Either<T1,​Either<T2,​T3>>
    Union type for three types.
    • Constructor Detail

      • Either3

        protected Either3​(T1 left,
                          Either<T2,​T3> right)
    • Method Detail

      • forFirst

        public static <T1,​T2,​T3> Either3<T1,​T2,​T3> forFirst​(T1 first)
      • forSecond

        public static <T1,​T2,​T3> Either3<T1,​T2,​T3> forSecond​(T2 second)
      • forThird

        public static <T1,​T2,​T3> Either3<T1,​T2,​T3> forThird​(T3 third)
      • forLeft3

        public static <T1,​T2,​T3> Either3<T1,​T2,​T3> forLeft3​(T1 first)
      • forRight3

        public static <T1,​T2,​T3> Either3<T1,​T2,​T3> forRight3​(Either<T2,​T3> right)
      • getFirst

        public T1 getFirst()
      • getSecond

        public T2 getSecond()
      • getThird

        public T3 getThird()
      • isFirst

        public boolean isFirst()
      • isSecond

        public boolean isSecond()
      • isThird

        public boolean isThird()
      • map

        public <T> T map​(java.util.function.Function<? super T1,​? extends T> mapFirst,
                         java.util.function.Function<? super T2,​? extends T> mapSecond,
                         java.util.function.Function<? super T3,​? extends T> mapThird)