net.sourceforge.xwing
Class NullSourceSink
java.lang.Object
net.sourceforge.xwing.AbstractSourceSink
net.sourceforge.xwing.NullSourceSink
- All Implemented Interfaces:
- SourceSink
- public class NullSourceSink
- extends AbstractSourceSink
A SourceSink whose value is always null.
- Version:
- $Revision: 1.2 $
- Author:
- Scott Howlett
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NullSourceSink
public NullSourceSink()
get
public Object get()
- Return null.
- Returns:
- a value.
set
public void set(Object newValue)
- Do nothing. Never causes a ChangeEvent to be broadcast
because null never changes.
- 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.