public class CircularArray extends IStructure<java.lang.Runnable>
IStructure.Node<T>
head, size, tail
Constructor and Description |
---|
CircularArray(int myLogCapacity) |
Modifier and Type | Method and Description |
---|---|
void |
add(int i,
java.lang.Runnable item) |
void |
add(java.lang.Runnable item)
Deprecated.
|
java.lang.Runnable |
get() |
java.lang.Runnable |
get(int i) |
int |
getCapacity() |
boolean |
isEmpty()
Deprecated.
|
CircularArray |
resize(int bottom,
int top) |
clear, getSize
public void add(int i, java.lang.Runnable item)
@Deprecated public void add(java.lang.Runnable item)
add
in class IStructure<java.lang.Runnable>
public java.lang.Runnable get() throws EmptyException
get
in class IStructure<java.lang.Runnable>
EmptyException
public java.lang.Runnable get(int i) throws EmptyException
EmptyException
public int getCapacity()
@Deprecated public boolean isEmpty()
isEmpty
in class IStructure<java.lang.Runnable>
public CircularArray resize(int bottom, int top)