Class WheelList<E>
java.lang.Object
org.qiunet.utils.collection.wheel.WheelList<E>
环形列表
- Author:
- qiunet 2022/8/2 17:21
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintforeach(int startIndex, IndexForeach<E> consumer) 从pos 开始循环一圈查找intnextForeach(int preIndex, IndexForeach<E> consumer) 从pos 下一个开始循环一圈查找
-
Constructor Details
-
WheelList
-
-
Method Details
-
nextForeach
从pos 下一个开始循环一圈查找- Parameters:
preIndex- 从preIndex的下一个数据开始查找consumer- 消费者- Returns:
- 最后的index
-
foreach
从pos 开始循环一圈查找- Parameters:
startIndex- 开始查找的Indexconsumer- 消费者- Returns:
- 最后的index
-