You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I see there are a lot of common methods defined in List/Set/Queue/Array/... and wondering why there is no a common interface to abstract the common methods to make the interfaces more concise/consistent?
The text was updated successfully, but these errors were encountered:
For example, filter/map/flatMap/distinct/top/... Can these methods be defined/implemented in a basic abstract class? or move them to a separated interface, like Steam API to Collection in java.util?
We have already package-private classes for that purpose in io.vavr.collection, e.g. Collections, Maps, Multimaps, Comparators, AbstractMultimap and AbstractQueue. But I think there is potential to further simplify things.
However, please note that there is a JDK bug, that prevents us from using method references when we use package-private abstract classes. See #1326
I see there are a lot of common methods defined in List/Set/Queue/Array/... and wondering why there is no a common interface to abstract the common methods to make the interfaces more concise/consistent?
The text was updated successfully, but these errors were encountered: