We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have a list of abstract instances and I want to validate the exactly 1 and only a element is of subtype X.
To validate 1 match, I have to do something like:
validate(SomeEntity::myList) .validate { it.single { listItem -> listItem is MySpecificSubClass } }
For N matches I would have to add a counter or something.
I have to keep like an external counter or so.
No additional data
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Is your feature request related to a problem? Please describe.
I have a list of abstract instances and I want to validate the exactly 1 and only a element is of subtype X.
Describe the solution you'd like
To validate 1 match, I have to do something like:
For N matches I would have to add a counter or something.
Describe alternatives you've considered
I have to keep like an external counter or so.
Additional context
No additional data
The text was updated successfully, but these errors were encountered: