|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
com.google.code.yanf4j.util.CircularQueue<E>
E - public class CircularQueue<E>
A circular queue from mina
| Field Summary |
|---|
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
CircularQueue()
Construct a new, empty queue. |
|
CircularQueue(int initialCapacity)
|
|
| Method Summary | |
|---|---|
boolean |
add(E o)
|
void |
add(int idx,
E o)
|
int |
capacity()
Returns the capacity of this queue. |
void |
clear()
|
E |
element()
|
E |
get(int idx)
|
boolean |
isEmpty()
|
boolean |
offer(E item)
|
E |
peek()
|
E |
poll()
|
E |
remove()
|
E |
remove(int idx)
|
E |
set(int idx,
E o)
|
int |
size()
|
java.lang.String |
toString()
|
| Methods inherited from class java.util.AbstractList |
|---|
addAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList |
| Methods inherited from class java.util.AbstractCollection |
|---|
addAll, contains, containsAll, remove, removeAll, retainAll, toArray, toArray |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
addAll, addAll, contains, containsAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeAll, retainAll, subList, toArray, toArray |
| Constructor Detail |
|---|
public CircularQueue()
public CircularQueue(int initialCapacity)
| Method Detail |
|---|
public int capacity()
public void clear()
clear in interface java.util.Collection<E>clear in interface java.util.List<E>clear in class java.util.AbstractList<E>public E poll()
poll in interface java.util.Queue<E>public boolean offer(E item)
offer in interface java.util.Queue<E>public E peek()
peek in interface java.util.Queue<E>public E get(int idx)
get in interface java.util.List<E>get in class java.util.AbstractList<E>public boolean isEmpty()
isEmpty in interface java.util.Collection<E>isEmpty in interface java.util.List<E>isEmpty in class java.util.AbstractCollection<E>public int size()
size in interface java.util.Collection<E>size in interface java.util.List<E>size in class java.util.AbstractCollection<E>public java.lang.String toString()
toString in class java.util.AbstractCollection<E>public boolean add(E o)
add in interface java.util.Collection<E>add in interface java.util.List<E>add in interface java.util.Queue<E>add in class java.util.AbstractList<E>
public E set(int idx,
E o)
set in interface java.util.List<E>set in class java.util.AbstractList<E>
public void add(int idx,
E o)
add in interface java.util.List<E>add in class java.util.AbstractList<E>public E remove(int idx)
remove in interface java.util.List<E>remove in class java.util.AbstractList<E>public E remove()
remove in interface java.util.Queue<E>public E element()
element in interface java.util.Queue<E>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||