|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jaxfront.core.util.Queue
public class Queue
Constructor Summary | |
---|---|
Queue()
|
|
Queue(int maxSize)
|
Method Summary | |
---|---|
void |
add(int index,
java.lang.Object element)
|
boolean |
add(java.lang.Object o)
|
boolean |
addAll(java.util.Collection c)
|
boolean |
addAll(int index,
java.util.Collection c)
|
void |
clear()
Removes all elements at the queue. |
boolean |
contains(java.lang.Object o)
|
boolean |
containsAll(java.util.Collection c)
|
java.lang.Object |
dequeue()
Removes the element at the top of the queue. |
boolean |
empty()
|
java.lang.Object |
enqueue(java.lang.Object element)
Inserts a new element at the rear of the queue. |
java.lang.Object |
enqueueUnique(java.lang.Object element)
Inserts a new element at the rear of the queue. |
java.lang.String |
exportToCSV(java.lang.String separator)
|
java.lang.Object |
front()
Inspects the element at the top of the queue without removing it. |
java.lang.Object |
get(int index)
|
java.util.List |
getItems()
|
int |
indexOf(java.lang.Object o)
|
void |
initFromCSV(java.lang.String csv,
java.lang.String separator)
|
boolean |
isEmpty()
|
java.util.Iterator |
iterator()
|
int |
lastIndexOf(java.lang.Object o)
|
java.util.ListIterator |
listIterator()
|
java.util.ListIterator |
listIterator(int index)
|
java.lang.Object |
remove(int index)
|
boolean |
remove(java.lang.Object o)
|
boolean |
removeAll(java.util.Collection c)
|
boolean |
retainAll(java.util.Collection c)
|
java.lang.Object |
set(int index,
java.lang.Object element)
|
int |
size()
|
java.util.List |
subList(int fromIndex,
int toIndex)
|
java.lang.Object[] |
toArray()
|
java.lang.Object[] |
toArray(java.lang.Object[] a)
|
java.lang.Object[] |
toInverseArray()
|
java.lang.Object[] |
toInverseArray(java.lang.Object[] toInverse)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.List |
---|
equals, hashCode |
Constructor Detail |
---|
public Queue(int maxSize)
public Queue()
Method Detail |
---|
public java.lang.Object enqueue(java.lang.Object element)
element
- element to be inserted.public java.lang.Object enqueueUnique(java.lang.Object element)
element
- element to be inserted.public java.lang.Object dequeue()
EmptyQueueException
- if the queue is empty.public java.lang.Object front()
EmptyQueueException
- if the queue is empty.public int size()
size
in interface java.util.Collection
size
in interface java.util.List
public boolean empty()
public void clear()
clear
in interface java.util.Collection
clear
in interface java.util.List
public java.lang.Object[] toArray()
toArray
in interface java.util.Collection
toArray
in interface java.util.List
public java.util.List getItems()
public java.lang.Object[] toInverseArray()
public java.lang.Object[] toInverseArray(java.lang.Object[] toInverse)
public void initFromCSV(java.lang.String csv, java.lang.String separator)
public java.lang.String exportToCSV(java.lang.String separator)
public boolean isEmpty()
isEmpty
in interface java.util.Collection
isEmpty
in interface java.util.List
public java.lang.Object get(int index)
get
in interface java.util.List
public java.lang.Object remove(int index)
remove
in interface java.util.List
public void add(int index, java.lang.Object element)
add
in interface java.util.List
public int indexOf(java.lang.Object o)
indexOf
in interface java.util.List
public int lastIndexOf(java.lang.Object o)
lastIndexOf
in interface java.util.List
public boolean add(java.lang.Object o)
add
in interface java.util.Collection
add
in interface java.util.List
public boolean contains(java.lang.Object o)
contains
in interface java.util.Collection
contains
in interface java.util.List
public boolean remove(java.lang.Object o)
remove
in interface java.util.Collection
remove
in interface java.util.List
public boolean addAll(int index, java.util.Collection c)
addAll
in interface java.util.List
public boolean addAll(java.util.Collection c)
addAll
in interface java.util.Collection
addAll
in interface java.util.List
public boolean containsAll(java.util.Collection c)
containsAll
in interface java.util.Collection
containsAll
in interface java.util.List
public boolean removeAll(java.util.Collection c)
removeAll
in interface java.util.Collection
removeAll
in interface java.util.List
public boolean retainAll(java.util.Collection c)
retainAll
in interface java.util.Collection
retainAll
in interface java.util.List
public java.util.Iterator iterator()
iterator
in interface java.lang.Iterable
iterator
in interface java.util.Collection
iterator
in interface java.util.List
public java.util.List subList(int fromIndex, int toIndex)
subList
in interface java.util.List
public java.util.ListIterator listIterator()
listIterator
in interface java.util.List
public java.util.ListIterator listIterator(int index)
listIterator
in interface java.util.List
public java.lang.Object set(int index, java.lang.Object element)
set
in interface java.util.List
public java.lang.Object[] toArray(java.lang.Object[] a)
toArray
in interface java.util.Collection
toArray
in interface java.util.List
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |