1 22 package org.jboss.util.collection; 23 24 import java.util.Collection ; 25 26 32 public interface Queue 33 extends Collection  34 { 35 36 int UNLIMITED_MAXIMUM_SIZE = -1; 37 38 43 int getMaximumSize(); 44 45 52 void setMaximumSize(int size) throws IllegalArgumentException ; 53 54 59 boolean isFull(); 60 61 66 boolean isEmpty(); 67 68 76 boolean add(Object obj) throws FullCollectionException; 77 78 85 Object remove() throws EmptyCollectionException; 86 87 94 Object getFront() throws EmptyCollectionException; 95 96 103 Object getBack() throws EmptyCollectionException; 104 } 105 | Popular Tags |