Adding has(Argument<T> argument) to Arguments.java

This commit is contained in:
MrBretzel 2021-02-20 15:31:30 +01:00 committed by GitHub
parent bd840a868f
commit 1ad1f06e33
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<T> argument) {
return args.containsKey(argument.getId());
}
public boolean has(@NotNull String identifier) {
return args.containsKey(identifier);
}