feilong-core 1.12.0 发布了,让 Java 开发更简便

栏目: 软件资讯 · 发布时间: 7年前

内容简介:feilong-core 1.12.0 发布了,feilong-core 是一个让 Java 开发更简便的工具包。 让你从大量重复的底层代码中脱身,提高工作效率; 让你的代码更简炼,易写、易读、易于维护; 文档地址: http://feilong-core.mydoc...

feilong-core 1.12.0 发布了,feilong-core 是一个让 Java 开发更简便的 工具 包。

  1. 让你从大量重复的底层代码中脱身,提高工作效率;

  2. 让你的代码更简炼,易写、易读、易于维护;

文档地址: http://feilong-core.mydoc.io/

单元测试数 增加至 2045 个, 单元测试覆盖率 增加至 91% ,javadoc 比率 83%

本次升级共有 7 处变更, 具体参见 1.12.0 milestone

[Feature] 

  • #645 大幅度提高 CollectionsUtil.getPropertyValueList 性能

对于以下user list

List<User>  list = buildUser(1000);

private static final List<User> buildUser(int size){
    List<User> returnList = newArrayList();
    for (int i = 0, j = size; i < j; ++i){
        returnList.add(new User("张三" + i, i));
    }
    return returnList;
}

现在要取到每个user 的age ,组成list集合返回,直接调用

List<Integer> ageList = CollectionsUtil.getPropertyValueList(list, "age");

1.12.0 VS 1.11.5 性能对比

feilong-core 1.12.0 发布了,让 Java 开发更简便

在循环 50000 次 , 1.12.0 速度上提升了 20 倍

[Update]

  • #755 CollectionsUtil.getPropertyValueSet(Iterable<O>, String)初始化set 大小

  • #754 CollectionsUtil.getPropertyValueList(Iterable<O>, String) 初始化 list大小

[版本升级]

  • commons-collections4 升级到 4.2 ⬆️

[Remove]

  • none

[Fix Bug] 

  • none

[Javadoc]

  • #759 完善 BeanUtil javadoc

  • #758 完善 CollectionsUtil.getPropertyValueSet(Iterable<O>, String) javadoc ,增加对 beanIterable 的说明

  • #757 完善 CollectionsUtil.getPropertyValueList(Iterable<O>, String) javadoc ,增加对 beanIterable 的说明

[Junit Test]

  • #756 添加 GetPropertyValueListPropertyNameTest 单元测试类


【声明】文章转载自:开源中国社区 [http://www.oschina.net]


以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Iterative Methods for Sparse Linear Systems, Second Edition

Iterative Methods for Sparse Linear Systems, Second Edition

Yousef Saad / Society for Industrial and Applied Mathematics / 2003-04-30 / USD 102.00

Tremendous progress has been made in the scientific and engineering disciplines regarding the use of iterative methods for linear systems. The size and complexity of linear and nonlinear systems arisi......一起来看看 《Iterative Methods for Sparse Linear Systems, Second Edition》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

在线进制转换器
在线进制转换器

各进制数互转换器

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具