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, size
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
addAll, contains, containsAll, remove, removeAll, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addAll, contains, containsAll, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
parallelStream, removeIf, stream
Copyright © 2024. All rights reserved.