public interface queue { /** * Najvecja velikost vrste. */ public int size(); /** * Stevilo elementov v vrsti. */ public int num(); /** * Stevilo prostih mest v vrsti. */ public int free(); /** * Prvi predmet v vrsti. * @exception queueException Nobenega predmeta v vrsti. */ public Object front() throws queueException; /** * Dodamo nov predmet v vrsto. */ public void enqueue (Object element) throws queueException; /** * Vzamemo prvi iz vrste. */ public Object dequeue() throws queueException; } // queue