feat: create MyCollectors with toMyList factory
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
package ru.test.maven.spring;
|
||||
import java.util.stream.Collector;
|
||||
public class MyCollectors
|
||||
{
|
||||
private MyCollectors() {
|
||||
}
|
||||
public static <T> Collector<T, MyList<T>, MyList<T>> toMyList() {
|
||||
return new MyListCollector<>();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user