lambda-dev Digest, Vol 21, Issue 4

Steven Simpson ss at comp.lancs.ac.uk
Tue Aug 9 04:15:50 PDT 2011


On 09/08/11 03:47, Mike Duigou wrote:
> On August 6, 2011 09:17:29 PDT , Rémi Forax<forax at univ-mlv.fr>  wrote:
>> On 08/06/2011 01:13 PM, Steven Simpson wrote:
>>> On 05/08/11 02:09, mike.duigou at oracle.com wrote:
>>>> + src/share/classes/java/util/functions/Predicates.java
>>> http://hg.openjdk.java.net/lambda/lambda/jdk/file/38969e64b60e/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?
> What's wrong with contains?

Obviously, this is just a matter of English grammar, but 
Predicate.contains(myList) looks like a predicate that matches an object 
containing myList, not a predicate matching an object contained in myList.

Cheers,

Steven


More information about the lambda-dev mailing list