summaryrefslogtreecommitdiff
path: root/sources/utils/VSPriorityQueue.java
diff options
context:
space:
mode:
Diffstat (limited to 'sources/utils/VSPriorityQueue.java')
-rw-r--r--sources/utils/VSPriorityQueue.java32
1 files changed, 0 insertions, 32 deletions
diff --git a/sources/utils/VSPriorityQueue.java b/sources/utils/VSPriorityQueue.java
deleted file mode 100644
index d706352..0000000
--- a/sources/utils/VSPriorityQueue.java
+++ /dev/null
@@ -1,32 +0,0 @@
-package utils;
-
-import java.util.PriorityQueue;
-
-/**
- * The class VSPriorityQueue. This class is the same like the standard
- * VSPriorityQueue of the Java API. It only overrides the get(int) method.
- *
- * @author Paul C. Buetow
- */
-public final class VSPriorityQueue<T> extends PriorityQueue<T> {
- /** The serial version uid */
- private static final long serialVersionUID = 1L;
-
- /**
- * Gets the specific element. If the index is out of bounds, it will return
- * null.
- *
- * @param index the index
- *
- * @return the element, or null, if out of bounds
- */
- public T get(int index) {
- int i = 0;
-
- for (T t : this)
- if (i++ == index)
- return t;
-
- return null;
- }
-}