Class EitherParser<C,U,V>

java.lang.Object
org.incendo.cloud.parser.standard.EitherParser<C,U,V>
Type Parameters:
C - command sender type
U - primary value type
V - fallback value type
All Implemented Interfaces:
ArgumentParser<C,Either<U,V>>, ArgumentParser.FutureArgumentParser<C,Either<U,V>>, SuggestionProvider<C>, SuggestionProviderHolder<C>

@API(status=STABLE) public final class EitherParser<C,U,V> extends Object implements ArgumentParser.FutureArgumentParser<C,Either<U,V>>, SuggestionProvider<C>
A parser which attempts to use the primary() parser and falls back on the fallback() parser if that fails.