src/main/java/org/jboss/util/collection/AbstractQueue.java
/**
    * Remove and return the first object in the queue.
    *
    * @return  Dequeued object.
    *
    * @exception EmptyCollectionException    The queue is empty.
    */
Remove and return the first object in the queue.
@return  Dequeued object.

@exception EmptyCollectionException    The queue is empty.
Remove and return the first object in the queue . @return Dequeued object . @exception EmptyCollectionException The queue is empty .
public E remove() throws EmptyCollectionException {
      if (isEmpty())
         throw new EmptyCollectionException();
      return removeFirst();
   }
public E remove ( ) throws EmptyCollectionException { if ( isEmpty ( ) ) throw new EmptyCollectionException ( ) ; return removeFirst ( ) ; }
Remove and return the first object in the queue.
Remove and return the first object in the queue .