Class CircularIterator<E>
- java.lang.Object
-
- com.ericlam.mc.minigames.core.function.CircularIterator<E>
-
- Type Parameters:
E
- 自定義類
- All Implemented Interfaces:
Iterator<E>
public final class CircularIterator<E> extends Object implements Iterator<E>
循環迭代器
-
-
Constructor Summary
Constructors Constructor Description CircularIterator(Collection<E> list)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
boolean
hasPrevious()
E
next()
int
nextIndex()
E
previous()
int
previousIndex()
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
-
-
-
Constructor Detail
-
CircularIterator
public CircularIterator(Collection<E> list)
-
-
Method Detail
-
hasPrevious
public boolean hasPrevious()
-
nextIndex
public int nextIndex()
-
previousIndex
public int previousIndex()
-
-