@Deprecated public final class Cycle<E> extends Object implements Cycle<E>
| Modifier and Type | Method and Description |
|---|---|
E |
back()
Deprecated.
|
Cycle<E> |
copy()
Deprecated.
Creates a copy of this cycle.
|
E |
current()
Deprecated.
Gets the current element
|
int |
cursor()
Deprecated.
Gets the current position of the cursor, as as index relating to a
position in the backing list.
|
List<E> |
getBacking()
Deprecated.
Gets the list currently backing this cycle
|
int |
getIndex()
Deprecated.
|
E |
next()
Deprecated.
Advances the cursor, and returns the next element.
|
int |
nextPosition()
Deprecated.
Returns the index of the next position in the cycle.
|
E |
peekNext()
Deprecated.
Returns the next element without advancing the cursor.
|
E |
peekPrevious()
Deprecated.
Returns the previous element without retreating the cursor.
|
E |
previous()
Deprecated.
Retreats the counter, and returns the previous element.
|
int |
previousPosition()
Deprecated.
Returns the index of the previous position in the cycle.
|
void |
setCursor(int index)
Deprecated.
Sets the cursor to a given index
|
public int cursor()
Cyclepublic void setCursor(int index)
Cycle@Nonnull public E current()
Cycle@Nonnull public E next()
Cycle@Nonnull public E previous()
Cyclepublic int nextPosition()
CyclenextPosition in interface Cycle<E>public int previousPosition()
CyclepreviousPosition in interface Cycle<E>@Nonnull public E peekNext()
Cycle@Nonnull public E peekPrevious()
CyclepeekPrevious in interface Cycle<E>@Nonnull public List<E> getBacking()
CycleThe returned list is immutable.
getBacking in interface Cycle<E>@Deprecated public int getIndex()
@Deprecated public E back()
Copyright © 2017. All rights reserved.