Package utils
Class CircularList<T extends Comparable<T>>
- java.lang.Object
-
- utils.CircularList<T>
-
public class CircularList<T extends Comparable<T>> extends Object
-
-
Constructor Summary
Constructors Constructor Description CircularList()
CircularList(Collection items)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(T x)
void
clear()
T
get(int i)
T
peek()
T
peek_next()
T
peek_previous()
void
point_to(T x)
void
point_to_index(int i)
void
remove(Collection<T> x)
void
remove(T x)
void
step_back()
void
step_forward()
String
toString()
-
-
-
Field Detail
-
queue
public final List<T extends Comparable<T>> queue
-
index
public int index
-
-
Constructor Detail
-
CircularList
public CircularList()
-
CircularList
public CircularList(Collection items)
-
-
Method Detail
-
clear
public void clear()
-
add
public void add(T x)
-
remove
public void remove(Collection<T> x)
-
remove
public void remove(T x)
-
point_to
public void point_to(T x)
-
point_to_index
public void point_to_index(int i)
-
peek
public T peek()
-
peek_next
public T peek_next()
-
peek_previous
public T peek_previous()
-
get
public T get(int i)
-
step_forward
public void step_forward()
-
step_back
public void step_back()
-
-