This commit is contained in:
2014-04-08 18:18:58 +02:00
parent fe79fbe138
commit 0956f6b92f
4 changed files with 77 additions and 54 deletions

View File

@@ -55,7 +55,7 @@ public class SortedListPriorityQueue<K,V> implements PriorityQueue<K,V> {
data.addFirst(t);
return t;
} else {
Iterator<Position<MyEntry<K, V>>> itp = data.positions();
Iterator<Position<MyEntry<K, V>>> itp = data.positions().iterator();
int status;
Position<MyEntry<K, V>> temp_pos = null;
for (; itp.hasNext(); ) {

View File

@@ -43,7 +43,7 @@ public class UnsortedListPriorityQueue<K,V> implements PriorityQueue<K,V> {
if (isEmpty()){
throw new EmptyPriorityQueueException();
} else {
Iterator<Position<MyEntry<K, V>>> itp = data.positions();
Iterator<Position<MyEntry<K, V>>> itp = data.positions().iterator();
int status;
Position<MyEntry<K, V>> min = null;
Position<MyEntry<K, V>> temp_pos = null;
@@ -83,7 +83,7 @@ public class UnsortedListPriorityQueue<K,V> implements PriorityQueue<K,V> {
if (isEmpty()){
throw new EmptyPriorityQueueException();
} else {
Iterator<Position<MyEntry<K, V>>> itp = data.positions();
Iterator<Position<MyEntry<K, V>>> itp = data.positions().iterator();
int status;
Position<MyEntry<K, V>> min = null;
Position<MyEntry<K, V>> temp_pos = null;