public abstract class QueueSecondary<T> extends java.lang.Object implements Queue<T>
Constructor and Description |
---|
QueueSecondary() |
Modifier and Type | Method and Description |
---|---|
void |
append(java.util.Collection<T> collection)
Appends the entries in
collection to the end of this . |
void |
append(Queue<T> collection)
Appends the entries in
collection to the end of this . |
boolean |
contains(T entry)
Reports whether
entry is in this . |
boolean |
equals(java.lang.Object o) |
void |
flip()
Reverses the order of the entries in
this . |
int |
hashCode() |
void |
sort(java.util.Comparator<T> comparator)
Sorts the entries in
this according to the order provided by
comparator . |
java.lang.String |
toString() |
dequeue, enqueue, front, length, replaceFront
clear, newInstance, transferFrom
public void flip()
Queue
this
.public void append(java.util.Collection<T> collection)
Queue
collection
to the end of this
.public void append(Queue<T> collection)
Queue
collection
to the end of this
.public void sort(java.util.Comparator<T> comparator)
Queue
this
according to the order provided by
comparator
.public boolean contains(T entry)
Queue
entry
is in this
.public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object