/[fenfire]/fenfire/org/fenfire/index/impl/EnfiladeOverlapIndex.java
ViewVC logotype

Diff of /fenfire/org/fenfire/index/impl/EnfiladeOverlapIndex.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by mudyc, Wed Mar 26 23:48:14 2003 UTC revision 1.2 by tjl, Sun Apr 27 20:19:24 2003 UTC
# Line 35  import org.nongnu.alph.impl.Enfilade1DIm Line 35  import org.nongnu.alph.impl.Enfilade1DIm
35   * overlaps with the given one.   * overlaps with the given one.
36   * VERY INEFFICIENT.   * VERY INEFFICIENT.
37   */   */
38  public class EnfiladeOverlapIndex implements Indexer, Index {  public class EnfiladeOverlapIndex implements Index {
39    
40      private HashMap map = new HashMap();        private HashMap map;
41      public void set(Object entryName, Object value) {      public Map getContents() {
42            return Collections.con
43        }
44    
45        public EnfiladeOverlapIndex() {
46            clear();
47        }
48        public void clear() {
49            map = new HashMap();  
50        }
51    
52        public void set(int dir, Object entryName, Object value) {
53          if(value == null) {          if(value == null) {
54              map.remove(entryName);              map.remove(entryName);
55              return;              return;
# Line 46  public class EnfiladeOverlapIndex implem Line 57  public class EnfiladeOverlapIndex implem
57          if(!(value instanceof Enfilade1DImpl)) return;          if(!(value instanceof Enfilade1DImpl)) return;
58          map.put(entryName, value);          map.put(entryName, value);
59      }      }
60    
61      public Collection getMatches(Object o) {      public Collection getMatches(Object o) {
62          Set s = map.entrySet();          Set s = map.entrySet();
63          List ret = new ArrayList();          List ret = new ArrayList();

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26