您当前的位置: 首页 >  Java

科技D人生

暂无认证

  • 0浏览

    0关注

    1550博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

Java基础学习总结(128)——List去重3种方式及性能比较

科技D人生 发布时间:2018-06-29 22:24:41 ,浏览量:0

package com.zhy.common.util;import static org.hamcrest.CoreMatchers.hasItems;import static org.junit.Assert.assertThat;import java.util.ArrayList;import java.util.HashSet;import java.util.List;import java.util.Set;import java.util.stream.Collectors;import org.junit.Before;import org.junit.Test;import com.zhy.common.AbstractZhyCommonTest;/** * @ClassName ListUtilTest * @Description (List去重3种方式及性能比较) * @author ZHY * @date 2018年6月29日 下午9:18:20 * @Copyright © 2018【www.zhy.com Inc. All rights reserved.】 */public class ListUtilTest extends AbstractZhyCommonTest { private static List list = new ArrayList(); private static int num = 10000; @Before public void init() { list.add("
关注
打赏
1662604032
查看更多评论
立即登录/注册

微信扫码登录

0.1094s