eclipse-collections使用简介

初始化常用容器的工厂方法:    

Package org.eclipse.collections.impl.factory

This package contains static utilities for creating mutable and immutable collection factories.

    Bags BiMaps HashingStrategyMaps HashingStrategySets Iterables Lists Maps Multimaps Sets SortedBags SortedMaps SortedSets Stacks

Package org.eclipse.collections.impl.factory.primitive

This package contains static utilities for creating immutable primitive collection factories.

常用的工具类:    

Package org.eclipse.collections.impl.utility

This package contains static utilities that provide iteration pattern implementations which work with JCF collections

      

    ArrayIterate

    ArrayListIterate

    Iterate

    LazyIterate

    ListIterate

    MapIterate

    OrderedIterate  

    StringIterate

Package org.eclipse.collections.impl.utility.primitive

Package org.eclipse.collections.impl.block.factory

This package contains factory implementations for FunctionPredicateSerializableComparator and Procedure.

检查条件是否满足      anySatisfyWith

计数 countWith

过滤 selectWith rejectWith partitionWith

提取满足条件的1个 detectWith

展开并收集 flatCollect  // Better performance with target collection

分组 groupBy






转载于:https://my.oschina.net/u/1173882/blog/619323

你可能感兴趣的:(eclipse-collections使用简介)