Closed songkg7 closed 7 months ago
Supports collection type as a parameter to InnerSpec.keys(), and a few other method like this.
related: resolve #679
add method as follow:
public InnerSpec keys(Collection<?> keys) { keys.forEach(this::key()) return this; }
However, since the keys() method currently takes an Object as a parameter, I think we should approach method overloading very carefully.
I written test code that takes a list as a parameter.
No
Thanks for your contribution! If you don't mind, it would be great to have a similar method that accepts a collection as a parameter for values() and entries().
Summary
Supports collection type as a parameter to InnerSpec.keys(), and a few other method like this.
related: resolve #679
(Optional): Description
add method as follow:
However, since the keys() method currently takes an Object as a parameter, I think we should approach method overloading very carefully.
How Has This Been Tested?
I written test code that takes a list as a parameter.
Is the Document updated?
No