/[fenfire]/fenfire/org/fenfire/functional/FunctionCacheEntry.java
ViewVC logotype

Diff of /fenfire/org/fenfire/functional/FunctionCacheEntry.java

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

revision 1.1 by tjl, Wed Sep 10 13:01:15 2003 UTC revision 1.2 by tjl, Thu Sep 11 17:26:08 2003 UTC
# Line 17  import org.fenfire.util.*; Line 17  import org.fenfire.util.*;
17    
18  public class FunctionCacheEntry implements Obs {  public class FunctionCacheEntry implements Obs {
19      static final public Object DIRTY = new Object();      static final public Object DIRTY = new Object();
20    
21      /** The input this cache entry is for.      /** The input this cache entry is for.
22       * Stored here so that it may be used as the hash key.       * Stored here so that it may be used as the hash key.
23       */       */
# Line 35  public class FunctionCacheEntry implemen Line 36  public class FunctionCacheEntry implemen
36          this.input = input;          this.input = input;
37      }      }
38    
39        protected void releaseAll() {
40            value = null;
41            obses = null;
42        }
43    
44      public void addObs(Obs o) {      public void addObs(Obs o) {
45          if(obses == null) obses = new HashSet();          if(obses == null) obses = new HashSet();
46          obses.add(o);          obses.add(o);

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