src/main/java/org/jboss/util/collection/AbstractQueue.java
/**
    * Removes all of the elements from this queue
    */
Removes all of the elements from this queue
Removes all of the elements from this queue
public void clear() {
      while (!isEmpty()) {
         remove();
      }
   }
public void clear ( ) { while ( ! isEmpty ( ) ) { remove ( ) ; } }
Removes all of the elements from this queue
Removes all of the elements from this queue