net.sourceforge.xwing
Class NullSourceSink

java.lang.Object
  extended bynet.sourceforge.xwing.AbstractSourceSink
      extended bynet.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

Constructor Summary
NullSourceSink()
           
 
Method Summary
 Object get()
          Return null.
 void set(Object newValue)
          Do nothing.
 
Methods inherited from class net.sourceforge.xwing.AbstractSourceSink
addChangeListener, fireStateChanged, removeChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullSourceSink

public NullSourceSink()
Method Detail

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.