-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Improvements checks for arguments numbers #13290
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
maybe it'd be better to rename the class to something like |
i think the idea is add more checks.. but i found another class with similar use.. then i move to this for now. |
jpenilla
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
asArgument[Condition] -> require[Condition]
This follows the pattern of Objects.requireNonNull, etc.
only the asArgument methods not? also.... what about requireArgument (ex: requireArgumentMin, requireArgumentRange) for make clear its intended for Arguments. |
09fb1f1 to
c643f5e
Compare
https://canary.discord.com/channels/289587909051416579/925530366192779286/1436805929810268160