--
guava-...@googlegroups.com
Project site: http://guava-libraries.googlecode.com
This group: http://groups.google.com/group/guava-discuss
This list is for general discussion.
To report an issue: http://code.google.com/p/guava-libraries/issues/entry
To get help: http://stackoverflow.com/questions/ask (use the tag "guava")
I've actually used a variation of this using the MVEL expression
language [1].
From memory the code was something like:
public class MvelPredicate<T> implements Predicate<T> {
private String eval;
public MvelPredicate(String eval) {
this.eval = eval;
}
public boolean apply(T t) {
return MVEL.eval(eval, t);
}
}
then using:
new MvelPredicate("name = 'name'");