ソースを参照

ASortedMap - remove unnecessary abstract method

Ranides Atterwim 10 年 前
コミット
fc16c37f58

+ 0 - 4
assira/src/main/java/net/ranides/assira/collection/maps/ASortedMap.java

@@ -55,7 +55,6 @@ public abstract class ASortedMap<K, V> extends AMap<K, V> implements SortedMap<K
      * given key, if it present; otherwise, it will be either the smallest
      * greater key or the greatest smaller key.
      */
-    protected abstract Entry<K, V> locateEntry(K key);
     
     protected abstract Entry<K, V> firstEntry();
 
@@ -424,9 +423,6 @@ public abstract class ASortedMap<K, V> extends AMap<K, V> implements SortedMap<K
         @Override
         protected abstract Entry<K, V> findEntry(K key);
 
-        @Override
-        protected abstract Entry<K, V> locateEntry(K key);
-        
         @Override
         protected abstract Entry<K, V> firstEntry();
 

+ 0 - 6
assira/src/main/java/net/ranides/assira/collection/maps/AVLTreeMap.java

@@ -142,7 +142,6 @@ public final class AVLTreeMap<K, V> extends ASortedMap<K, V> implements java.io.
         return entry;
     }
 
-    @Override
     protected AVLEntry<K, V> locateEntry(K key) {
         AVLEntry<K, V> current = tree, last = tree;
         int cmp = 0;
@@ -1056,11 +1055,6 @@ public final class AVLTreeMap<K, V> extends ASortedMap<K, V> implements java.io.
             return AVLTreeMap.this.findEntry(key);
         }
 
-        @Override
-        protected AVLTreeMap.AVLEntry<K, V> locateEntry(K key) {
-            return AVLTreeMap.this.locateEntry(key);
-        }
-
         @Override
         protected AVLTreeMap.AVLEntry<K, V> firstEntry() {
             if (tree == null) {

+ 0 - 6
assira/src/main/java/net/ranides/assira/collection/maps/RBTreeMap.java

@@ -148,7 +148,6 @@ public final class RBTreeMap<K, V> extends ASortedMap<K, V> implements java.io.S
         return entry;
     }
 
-    @Override
     protected RBEntry<K, V> locateEntry(K key) {
         RBEntry<K, V> entry = tree, last = tree;
         int cmp = 0;
@@ -1136,11 +1135,6 @@ public final class RBTreeMap<K, V> extends ASortedMap<K, V> implements java.io.S
             return RBTreeMap.this.findEntry(key);
         }
 
-        @Override
-        protected RBTreeMap.RBEntry<K, V> locateEntry(K key) {
-            return RBTreeMap.this.locateEntry(key);
-        }
-        
         @Override
         protected RBTreeMap.RBEntry<K, V> lastEntry() {
             if (tree == null) {