| Modifier and Type | Class and Description |
|---|---|
static class |
IHashQueue.Entry<T>
innner Entry node class
|
| Constructor and Description |
|---|
IHashQueue() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(T word)
append a item from the tail
|
boolean |
contains(T word)
check the specifield T is aleady exists in the queue or not
|
T |
remove()
remove the node from the head
and you should make sure the size is larger than 0 by calling size()
before you invoke the method or you will just get null.
|
int |
size()
get the size of the queue
|
public boolean add(T word)
word - public boolean contains(T word)
word - public T remove()
public int size()
Copyright © 2017. All Rights Reserved.