hg: lambda/lambda/jdk: Initial standard lambda functions and utils

Steven Simpson ss at comp.lancs.ac.uk
Sat Aug 6 04:13:54 PDT 2011

On 05/08/11 02:09, mike.duigou at oracle.com wrote:
> + src/share/classes/java/util/functions/Predicates.java


  162      public static<T>  Predicate<T>  contains(Collection<? extends T>  target) {
  163          return #{T t ->  target.contains(t)};
  164      }

A couple of points:

    * Shouldn't that be "containedBy", "containedIn", "in", or similar?
    * target could be declared Collection<?>, right?



More information about the lambda-dev mailing list