Class OneOrBoth<T,S>
java.lang.Object
com.github.muehmar.gradle.openapi.util.OneOrBoth<T,S>
A generic container that can hold either one of two types or both.
-
Method Summary
Modifier and TypeMethodDescription<R> Rstatic <T,S> OneOrBoth<T, S> ofBoth(T first, S second) static <T,S> OneOrBoth<T, S> ofBothOptional(Optional<T> first, S second) static <T,S> OneOrBoth<T, S> ofBothOptional(T first, Optional<S> second) static <T,S> OneOrBoth<T, S> ofFirst(T first) static <T,S> OneOrBoth<T, S> ofSecond(S second)
-
Method Details
-
ofFirst
-
ofSecond
-
ofBoth
-
ofBothOptional
-
ofBothOptional
-
fold
-