ygerzhedovich commented on code in PR #2882:
URL: https://github.com/apache/ignite-3/pull/2882#discussion_r1429723743


##########
modules/core/src/main/java/org/apache/ignite/internal/util/CollectionUtils.java:
##########
@@ -521,4 +523,16 @@ public static <T> Set<T> intersect(Set<T> op1, Set<T> op2) 
{
 
         return Set.copyOf(set);
     }
+
+    /**
+     * Gets a list based on an iterator.
+     *
+     * @param iterator The iterator to use.
+     * @return A list of the iterator contents.
+     * @throws NullPointerException if iterator parameter is null
+     */
+    public static <T> List<T> toList(Iterator<T> iterator) {

Review Comment:
   As I see the conversion required just for tests. If it so it shouldn't be 
here. For tests exists org.junit.platform.commons.util.CollectionUtils.toStream 
and so one.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to