Class OneOf3<T,R,S>

java.lang.Object
com.github.muehmar.gradle.openapi.util.OneOf3<T,R,S>

public class OneOf3<T,R,S> extends Object
Container class to hold the three code instances and exactly one is present.
  • Method Details

    • ofFirst

      public static <T, R, S> OneOf3<T,R,S> ofFirst(T first)
    • ofSecond

      public static <T, R, S> OneOf3<T,R,S> ofSecond(R second)
    • ofThird

      public static <T, R, S> OneOf3<T,R,S> ofThird(S third)
    • fold

      public <X> X fold(Function<T,X> onFirst, Function<R,X> onSecond, Function<S,X> onThird)