|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tangosol.util.Base
com.tangosol.util.Dequeue
public class Dequeue
Represents a double-ended queue (dequeue) of objects. A dequeue allows items which have been removed from the front of the queue to be put back on the front of the queue.
Constructor Summary | |
---|---|
Dequeue()
Constructs a dequeue. |
Method Summary | |
---|---|
void |
addElement(Object o)
Adds an element to the dequeue. |
int |
capacity()
Determine the current capacity of this dequeue. |
Object |
clone()
Creates a clone of the dequeue. |
protected void |
grow()
Increase the capacity of the Dequeue. |
boolean |
hasMoreElements()
Determines if the Dequeue contains more elements. |
boolean |
hasNext()
Tests if this Iterator contains more elements. |
boolean |
isEmpty()
Determines if the dequeue is empty. |
boolean |
isFull()
Determines if the dequeue is full. |
Object |
next()
Returns the next element of this Iterator. |
protected int |
next(int i)
Determines the index following the passed index for storing or accessing an item from the m_ao storage. |
Object |
nextElement()
Returns the next element from the Dequeue. |
protected int |
prev(int i)
Determines the index preceding the passed index for storing or accessing an item from the m_ao storage. |
void |
putBackElement(Object o)
Returns the most recently returned element to the Dequeue. |
void |
remove()
Remove the last-returned element that was returned by the Iterator. |
void |
removeAllElements()
Removes all items from the dequeue. |
int |
size()
Determine the current number of objects in this dequeue. |
Constructor Detail |
---|
public Dequeue()
Method Detail |
---|
public boolean hasMoreElements()
hasMoreElements
in interface Enumeration
public Object nextElement() throws NoSuchElementException
nextElement
in interface Enumeration
NoSuchElementException
- If no more elements exist.public boolean hasNext()
hasNext
in interface Iterator
public Object next()
next
in interface Iterator
public void remove()
remove
in interface Iterator
public void addElement(Object o)
o
- object to add to the Dequeuepublic void putBackElement(Object o)
NoSuchElementException
- If the element that is being put back
is no longer in the Dequeue.public void removeAllElements()
public int capacity()
public int size()
public boolean isEmpty()
public boolean isFull()
public Object clone()
protected int next(int i)
protected int prev(int i)
protected void grow()
|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |