Merge pull request #140 from MrBretze/patch-1

Adding has(Argument<T> argument) to Arguments.java
This commit is contained in:
TheMode 2021-02-20 15:45:19 +01:00 committed by GitHub
commit ff3888d972
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,6 +49,10 @@ public final class Arguments {
}); });
} }
public boolean has(@NotNull Argument<?> argument) {
return args.containsKey(argument.getId());
}
public boolean has(@NotNull String identifier) { public boolean has(@NotNull String identifier) {
return args.containsKey(identifier); return args.containsKey(identifier);
} }