Class Either<A,B>
java.lang.Object
studio.mevera.imperat.command.arguments.Either<A,B>
-
Method Summary
Modifier and TypeMethodDescriptionfallbackOrMapPrimary(@NotNull Function<A, B> mapPrimary) static <A,B> Either<A, B> ofFallback(B fallback) static <A,B> Either<A, B> ofPrimary(A primary) primaryOrMapFallback(@NotNull Function<B, A> mapFallback)
-
Method Details
-
ofPrimary
-
ofFallback
-
-
fallbackOrMapPrimary
-
getPrimary
-
getFallback
-