You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returngetChecked(i, type).unwrapOrThrow((Function<String, IllegalArgumentException>) err -> newIllegalArgumentException("argument could not be parsed: " + err));
30
+
}
31
+
32
+
/**
33
+
* Same as {@link #get(int, ArgumentType)}, except checks if there is an error and returns a {@code Result}
34
+
* @param i The index of the argument
35
+
* @param type The argument type
36
+
* @param <T> The type of the argument type
22
37
* @return The result of the parsing
23
38
* @throws IndexOutOfBoundsException If {@code i} is an invalid index ({@code i} {@literal <} 0, or {@code i} {@literal >=} {@link #size()})
0 commit comments