gr.uoa.di.madgik.utils
Class FileBackedQueue<E>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractQueue<E>
          extended by gr.uoa.di.madgik.utils.FileBackedQueue<E>
All Implemented Interfaces:
Iterable<E>, Collection<E>, Queue<E>

public class FileBackedQueue<E>
extends AbstractQueue<E>


Constructor Summary
FileBackedQueue()
           
FileBackedQueue(String filename)
           
 
Method Summary
 void destroy()
           
 Iterator<E> iterator()
           
 boolean offer(E e)
           
 E peek()
           
 E poll()
           
 int size()
           
 
Methods inherited from class java.util.AbstractQueue
add, addAll, clear, element, remove
 
Methods inherited from class java.util.AbstractCollection
contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Collection
contains, containsAll, equals, hashCode, isEmpty, remove, removeAll, retainAll, toArray, toArray
 

Constructor Detail

FileBackedQueue

public FileBackedQueue()
                throws IOException
Throws:
IOException

FileBackedQueue

public FileBackedQueue(String filename)
                throws IOException
Throws:
IOException
Method Detail

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.