feat: add characteristics to MyListCollector

This commit is contained in:
Гаджикурбанов Темирлан
2026-08-29 12:14:27 +03:00
parent fe41b5d67d
commit 82713a80c6
@@ -32,4 +32,10 @@ public class MyListCollector <T> implements Collector<T, MyList<T>, MyList<T>>
{
return list -> list;
}
@Override
public Set<Collector.Characteristics> characteristics() {
return java.util.Set.of(
Collector.Characteristics.IDENTITY_FINISH
);
}
}