fabric: minor formatting/javadoc fixes
This commit is contained in:
parent
5a15ca2167
commit
488ea8f9d8
5 changed files with 8 additions and 9 deletions
|
|
@ -751,7 +751,7 @@ public class CommandArgument<C, T> implements Comparable<CommandArgument<?, ?>>,
|
|||
* @param <C> sender type
|
||||
* @param <T> argument value type
|
||||
* @param <B> the subclass type
|
||||
* @since 1.4.0
|
||||
* @since 1.5.0
|
||||
*/
|
||||
public abstract static class TypedBuilder<C, T, B extends Builder<C, T>> extends Builder<C, T> {
|
||||
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ public abstract class ArgumentParseResult<T> {
|
|||
* @param mapper the transformation
|
||||
* @param <U> the result type
|
||||
* @return a new result if successful, otherwise a failure
|
||||
* @since 1.4.0
|
||||
* @since 1.5.0
|
||||
*/
|
||||
public abstract <U> @NonNull ArgumentParseResult<U> mapParsedValue(Function<T, U> mapper);
|
||||
|
||||
|
|
@ -83,7 +83,7 @@ public abstract class ArgumentParseResult<T> {
|
|||
* @param mapper the transformation
|
||||
* @param <U> the result type
|
||||
* @return a new result if successful, otherwise a failure
|
||||
* @since 1.4.0
|
||||
* @since 1.5.0
|
||||
*/
|
||||
public abstract <U> @NonNull ArgumentParseResult<U> flatMapParsedValue(Function<T, ArgumentParseResult<U>> mapper);
|
||||
|
||||
|
|
@ -99,7 +99,7 @@ public abstract class ArgumentParseResult<T> {
|
|||
*
|
||||
* @param mapper the exception transformation
|
||||
* @return if this is a failure, a transformed result, otherwise this
|
||||
* @since 1.4.0
|
||||
* @since 1.5.0
|
||||
*/
|
||||
public abstract @NonNull ArgumentParseResult<T> mapFailure(Function<Throwable, Throwable> mapper);
|
||||
|
||||
|
|
|
|||
|
|
@ -98,6 +98,7 @@ public interface ArgumentParser<C, T> {
|
|||
* @param mapper the mapper to apply
|
||||
* @param <O> the result type
|
||||
* @return a derived parser.
|
||||
* @since 1.5.0
|
||||
*/
|
||||
default <O> @NonNull ArgumentParser<C, O> map(final BiFunction<CommandContext<C>, T, ArgumentParseResult<O>> mapper) {
|
||||
return new MappedArgumentParser<>(this, requireNonNull(mapper, "mapper"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue