java.lang.Objectunit4.collectionsLib.Queue<T>
public class Queue<T>
Constructor Summary | |
---|---|
Queue()
|
Method Summary | |
---|---|
T |
head()
הנחה: התור הנוכחי אינו ריק |
void |
insert(T x)
|
boolean |
isEmpty()
|
T |
remove()
הנחה: התור הנוכחי אינו ריק |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Queue()
Method Detail |
---|
public boolean isEmpty()
public void insert(T x)
x
- הערך שיוכנס לסוף התורpublic T remove()
public T head()
public String toString()
toString
in class java.lang.Object