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 |
*/ |
*/ |
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); |