T - 元素类型public class RandomAccessAvgPartition<T> extends AvgPartition<T> implements RandomAccess
[1,2,3,4] -》 [1,2], [3, 4]
[1,2,3,4] -》 [1,2], [3], [4]
[1,2,3,4] -》 [1], [2], [3], [4]
[1,2,3,4] -》 [1], [2], [3], [4], []
分区是在原List的基础上进行的,返回的分区是不可变的抽象列表,原列表元素变更,分区中元素也会变更。modCount| Constructor and Description |
|---|
RandomAccessAvgPartition(List<T> list,
int limit)
列表分区
|
get, sizeadd, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListaddAll, contains, containsAll, remove, removeAll, retainAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAll, contains, containsAll, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArrayparallelStream, removeIf, streamCopyright © 2025. All rights reserved.