Hi, In general, I'd prefer to have a predicate that uses matches() instead of find(). In my code I have never used find() because in most cases you want to match the whole string anyways. Of course you can use ^ and $ but I don't like that leniency. If I write code, I prefer to be explicit in the code what should done.
So I would prefer to add another asPredicate method that uses matches. I was stumbling on that several times. Uwe Am April 1, 2018 8:11:47 AM UTC schrieb Vivek Theeyarath <vivek.theeyar...@oracle.com>: >Hi all, > > Please review. > >Bug: https://bugs.openjdk.java.net/browse/JDK-8164781 > >Webrev: http://cr.openjdk.java.net/~rraghavan/8164781/webrev.01/ > > > >Regards > >Vivek