Add method in KiwiPreconditions to check collection contains only non-null elements #1151
Labels
new feature
A new feature such as a new class, method, package, group of classes, etc.
Milestone
Add a new validation method in
KiwiPreconditions
that checks aCollection
argument is not empty, and that none of its elements arenull
.Some possible names:
checkAllElementsNotNull
checkArgumentAllElementsNotNull
checkArgumentContainsOnlyNotNull
checkArgumentContainsOnlyNotNullElements
To be consistent, it should probably start with
checkArgument
since that is our general convention inKiwiPreconditions
.As I write this, I like
checkArgumentAllElementsNotNull
andcheckArgumentContainsOnlyNotNull
best, since they are not overly long and (seem to) convey the intent.The text was updated successfully, but these errors were encountered: