BiCollector
Dawid Weiss
dawid.weiss at gmail.com
Tue Jun 19 08:00:17 UTC 2018
Not that it's an important factor but as a non-native English speaker
I like the simplest form of "toBoth()" best. I also doubt there will
ever be a "Both" class in the JDK to worry about, even if such
examples can be found in the wild [1].
Dawid
[1] https://github.com/search?q=filename%3ABoth.java
On Tue, Jun 19, 2018 at 9:52 AM, Peter Levart <peter.levart at gmail.com> wrote:
>
>
> On 06/19/18 09:43, Peter Levart wrote:
>>
>> We already have some toXxx() methods (toList, toSet, toCollection, toMap,
>> ...), so toBoth seems to me as a natural extension of that naming principle:
>
>
> Well, on a second thought, toList, toSet, etc... they all name a type that
> is a result of the collection (List, Set, etc.). But we don't have a type
> called Both (yet).
>
> So, please, continue with suggestions...
>
> Peter
>
More information about the core-libs-dev
mailing list