1 50 package org.apache.avalon.excalibur.collections; 51 52 import java.util.NoSuchElementException ; 53 54 64 public interface PriorityQueue 65 { 66 69 void clear(); 70 71 76 boolean isEmpty(); 77 78 83 void insert( Object element ); 84 85 91 Object peek() throws NoSuchElementException ; 92 93 99 Object pop() throws NoSuchElementException ; 100 } 101 102 | Popular Tags |