public class TweetQueue
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
protected class |
TweetQueue.Iter
This class provides basic iterator functionality to iterate
over the elements in the Queue without changing the Queue.
|
| Constructor and Description |
|---|
TweetQueue() |
| Modifier and Type | Method and Description |
|---|---|
Tweet |
dequeue()
Take frontmost value off the Queue and return it.
|
boolean |
empty()
This method is used to determine whether the Queue is empty.
|
void |
enqueue(Tweet s)
Enqueue (add to back) Tweet into the Queue.
|
protected TweetQueue.Iter |
iterator()
This method returns and iterator set to the initial element of the Queue.
|
public void enqueue(Tweet s)
s - The Tweet to be enqueued.public Tweet dequeue()
public boolean empty()
protected TweetQueue.Iter iterator()