|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
An ObjectDeque with mutation methods. Most applications can use the BasicModifiableObjectDeque implementation.
This interface itself does not specify thread-safety semantics. The particular implementation or use in a larger interface should specify this. For example, standalone ObjectDeques may be fully synchronized and thread-safe. ObjectDeques related to AWT or Swing objects may require that all interaction be done on the AWT event thread.
| Method Summary | |
void |
insertObject(int n,
Object obj)
Insert an object in the deque at a particular index. |
Object |
popObjectBack()
Pop an object from the back of the deque. |
Object |
popObjectFront()
Pop an object from the front of the deque. |
void |
pushObjectBack(Object obj)
Push an object on the back of the deque. |
void |
pushObjectFront(Object obj)
Push an object on the front of the deque. |
Object |
removeObject(int n)
Remove an object from the middle of the deque. |
| Methods inherited from interface com.virtuosotechnologies.lib.container.ObjectDeque |
addObjectDequeListener, getBack, getFront, getNthObject, removeObjectDequeListener |
| Methods inherited from interface com.virtuosotechnologies.lib.container.ObjectContainer |
getConstraints, getContentsAsArray, getSize |
| Method Detail |
public void pushObjectFront(Object obj)
obj - object to push
ConstraintsMismatchException - obj doesn't obey the constraintspublic void pushObjectBack(Object obj)
obj - object to push
ConstraintsMismatchException - obj doesn't obey the constraints
public void insertObject(int n,
Object obj)
n - index to insert atobj - object to insert
ConstraintsMismatchException - obj doesn't obey the constraints
IndexOutOfBoundsException - index out of boundspublic Object popObjectFront()
public Object popObjectBack()
public Object removeObject(int n)
n - index to remove
IndexOutOfBoundsException - index out of bounds
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||