gr.uoa.di.madgik.utils
Class FileBackedQueue<E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractQueue<E>
gr.uoa.di.madgik.utils.FileBackedQueue<E>
- All Implemented Interfaces:
- Iterable<E>, Collection<E>, Queue<E>
public class FileBackedQueue<E>
- extends AbstractQueue<E>
FileBackedQueue
public FileBackedQueue()
throws IOException
- Throws:
IOException
FileBackedQueue
public FileBackedQueue(String filename)
throws IOException
- Throws:
IOException
size
public int size()
- Specified by:
size in interface Collection<E>- Specified by:
size in class AbstractCollection<E>
poll
public E poll()
destroy
public void destroy()
offer
public boolean offer(E e)
peek
public E peek()
iterator
public Iterator<E> iterator()
- Specified by:
iterator in interface Iterable<E>- Specified by:
iterator in interface Collection<E>- Specified by:
iterator in class AbstractCollection<E>
Copyright © 2013. All Rights Reserved.