Uses of Class
com.sure.tool.fluent.FluentList
Packages that use FluentList
-
Uses of FluentList in com.sure.tool.fluent
Methods in com.sure.tool.fluent that return FluentListModifier and TypeMethodDescription追加一个元素。FluentList.addAll(Collection<? extends E> extra) 追加一批元素。FluentList.distinct()去重(保持首次出现顺序)。按条件过滤。static <E> FluentList<E> FluentList.from(Collection<? extends E> source) 从既有集合创建列表管道(防御拷贝,原集合修改不影响管道)。FluentList.limit(int maxSize) 限制为前 maxSize 个元素。static <E> FluentList<E> Fluent.list()创建空列表管道。static <E> FluentList<E> Fluent.listOf(E... items) 以若干元素创建列表管道。<E2> FluentList<E2> 元素映射(类型可变化)。static <E> FluentList<E> Fluent.of(Collection<? extends E> collection) 从既有集合创建列表管道(防御拷贝)。static <E> FluentList<E> FluentList.of()创建空列表管道。static <E> FluentList<E> FluentList.of(E... items) 以指定元素创建列表管道。FluentList.reverse()反转顺序。FluentList.skip(int n) 跳过前 n 个元素。FluentList.sorted()自然顺序排序(元素需实现Comparable,否则 ClassCastException)。FluentList.sorted(Comparator<? super E> comparator) 按指定比较器排序。