例子:
List<String> bookNames=select(new DefaultSelector<String>() { @Override public String select(Object item) { return ((Book)item).getName(); } }).executeFrom(bookCollection);
在Maven项目中引用:
<dependency> <groupId>cn.jimmyshi</groupId> <artifactId>bean-query</artifactId> <version>1.1.1</version> </dependency>
原文地址:http://blog.csdn.net/justfly/article/details/41394859