net.sourceforge.xwing
Class CachingSourceSink
java.lang.Object
net.sourceforge.xwing.AbstractSourceSink
net.sourceforge.xwing.CachingSourceSink
- All Implemented Interfaces:
- SourceSink
- public class CachingSourceSink
- extends AbstractSourceSink
A SourceSink that caches values retrieved from an underlying
SourceSink. Cached values are held by this SourceSink until
it receives notification from the underlying SourceSink that
its value has changed.
Blah blah blah
- Version:
- $Revision: 1.2 $
- Author:
- Scott Howlett
Method Summary |
Object |
get()
Retrieve some value. |
void |
set(Object newValue)
Store some value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CachingSourceSink
public CachingSourceSink(SourceSink srcSink)
- Create a new CachingSourceSink.
- Parameters:
srcSink
- The underlying SourceSink whose value
should be cached.
get
public Object get()
- Description copied from interface:
SourceSink
- Retrieve some value.
- Returns:
- a value.
set
public void set(Object newValue)
- Description copied from interface:
SourceSink
- Store some value.
- Parameters:
newValue
- The value to be stored. In general, if a value
is stored via set(), the value retrieved by a subsequent
get() call will equal the set value as defined by the value's
equals() method.
Copyright © 2003 The Xwing Project. All Rights Reserved.