代码地址:https://github.com/Jimmy-Shi/bean-query/tree/bean-query-1.1.1
修改内容:
例子:
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>