1 package it.unimi.dsi.fastutil; 2 3 23 24 import java.util.Comparator ; 25 import java.util.NoSuchElementException ; 26 27 43 44 public interface PriorityQueue<K> { 45 46 50 51 void enqueue( K x ); 52 53 58 59 K dequeue(); 60 61 65 66 boolean isEmpty(); 67 68 72 73 int size(); 74 75 77 78 void clear(); 79 80 85 86 K first(); 87 88 93 94 K last(); 95 96 98 99 void changed(); 100 101 105 Comparator <? super K> comparator(); 106 } 107 | Popular Tags |