maidh91 / guava-libraries

Automatically exported from code.google.com/p/guava-libraries
Apache License 2.0
0 stars 0 forks source link

Constraints.of(Predicate) #379

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Could return a PredicateConstraint which implements checkElement(..) like:

Preconditions.checkArgument(predicate.apply(input), "%s does not satisfy %s", 
input, predicate);

This would allow to use all existing and future predicates directly as 
constraints.

Original issue reported on code.google.com by w.schoen...@gmail.com on 14 Jul 2010 at 2:12

GoogleCodeExporter commented 9 years ago
Issue 407 has been merged into this issue.

Original comment by boppenh...@google.com on 30 Aug 2010 at 5:30

GoogleCodeExporter commented 9 years ago
Issue 402 has been merged into this issue.

Original comment by boppenh...@google.com on 30 Aug 2010 at 5:30

GoogleCodeExporter commented 9 years ago
This seems reasonable to me.

Original comment by boppenh...@google.com on 23 Sep 2010 at 5:22

GoogleCodeExporter commented 9 years ago

Original comment by fry@google.com on 28 Jan 2011 at 4:38

GoogleCodeExporter commented 9 years ago
When can we expect this feature? w.schoen wrote a very simple implementation. 
Is it possible to include this in release 10 still?

Original comment by ogregoire on 25 Jun 2011 at 2:58

GoogleCodeExporter commented 9 years ago
That would indeed be helpful.

Original comment by j...@nwsnet.de on 27 Jun 2011 at 8:04

GoogleCodeExporter commented 9 years ago
The major issue is that Constraint has always been an evolutionary dead end. We 
have something nearing completion to replace it.  There are a couple other 
specific issues with this suggestion which we can get to at that time.

Original comment by kevinb@google.com on 27 Jun 2011 at 2:32

GoogleCodeExporter commented 9 years ago
Will that replacement, and then maybe this feature as well, make it into r10?

Original comment by gscerbak@gmail.com on 27 Jun 2011 at 3:24

GoogleCodeExporter commented 9 years ago
Sorry, no, and likely not 11 either.

Original comment by kevinb@google.com on 28 Jun 2011 at 10:32

GoogleCodeExporter commented 9 years ago

Original comment by kevinb@google.com on 13 Jul 2011 at 6:18

GoogleCodeExporter commented 9 years ago

Original comment by fry@google.com on 10 Dec 2011 at 3:46

GoogleCodeExporter commented 9 years ago
I still agree with myself that Consraint is an evolutionary dead-end; it is 
also *very* seldom used within Google.  We won't be taking action on this issue.

Original comment by kevinb@google.com on 16 Feb 2012 at 6:51

GoogleCodeExporter commented 9 years ago
This issue has been migrated to GitHub.

It can be found at https://github.com/google/guava/issues/<id>

Original comment by cgdecker@google.com on 1 Nov 2014 at 4:15

GoogleCodeExporter commented 9 years ago

Original comment by cgdecker@google.com on 3 Nov 2014 at 9:09