hg: lambda/lambda/jdk: initial small set of extension methods on Collection and List which provide functional-style variants of common operations.

Paul Benedict pbenedict at apache.org
Thu Aug 18 07:23:01 PDT 2011


Hi Mike,

I don't think the xxxHelper classes are a good name. The utility
package is in itself a bunch of helper classes. And a name like
ListHelper kind of begs the question what help is needed or why help
is needed. Since these are all static methods, why not merge
CollectionHelpers with Collections, and introduce a new static utility
Lists?

Paul

On Wed, Aug 17, 2011 at 12:24 PM,  <mike.duigou at oracle.com> wrote:
> Changeset: 27671980ed45
> Author:    mduigou
> Date:      2011-08-16 15:00 -0700
> URL:       http://hg.openjdk.java.net/lambda/lambda/jdk/rev/27671980ed45
>
> initial small set of extension methods on Collection and List which provide functional-style variants of common operations.
>
> Potential source incompatibility on Collection.removeAll(null) and Collection.retainAll(null) as this is now ambiguous.
>
> ! make/java/java/FILES_java.gmk
> ! src/share/classes/java/util/Collection.java
> + src/share/classes/java/util/CollectionHelpers.java
> ! src/share/classes/java/util/List.java
> + src/share/classes/java/util/ListHelpers.java
> + test/java/util/Collection/Extensions.java
> ! test/java/util/Collection/MOAT.java
> + test/java/util/List/Extensions.java
>
>
>


More information about the lambda-dev mailing list