public class FileBackedQueue<E extends Serializable> extends AbstractQueue<E>
| Constructor and Description |
|---|
FileBackedQueue() |
FileBackedQueue(String filename) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
Iterator<E> |
iterator() |
boolean |
offer(E e) |
E |
peek() |
E |
poll() |
int |
size() |
contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringpublic FileBackedQueue()
throws IOException
IOExceptionpublic FileBackedQueue(String filename) throws IOException
IOExceptionpublic int size()
size in interface Collection<E extends Serializable>size in class AbstractCollection<E extends Serializable>public E poll()
public void destroy()
public boolean offer(E e)
public E peek()
public Iterator<E> iterator()
iterator in interface Iterable<E extends Serializable>iterator in interface Collection<E extends Serializable>iterator in class AbstractCollection<E extends Serializable>Copyright © 2015. All Rights Reserved.