org.jscience.util
Class Unchangeable

java.lang.Object
  extended by org.jscience.util.Unchangeable
All Implemented Interfaces:
Changeable

public class Unchangeable
extends java.lang.Object
implements Changeable

This is a utility implementation of Changeable that doesn't fire any events or keep references to any listeners. Use this when you have a final immutable class and can't be bothered to fill in all those method stubs.

Since:
1.3

Constructor Summary
Unchangeable()
           
 
Method Summary
 void addChangeListener(ChangeListener cl)
          DOCUMENT ME!
 void addChangeListener(ChangeListener cl, ChangeType ct)
          DOCUMENT ME!
 void addForwarder(ChangeForwarder cf, ChangeType ct)
          DOCUMENT ME!
 java.util.Set getForwarders(ChangeType ct)
          DOCUMENT ME!
 java.util.Set getListeners(ChangeType ct)
          DOCUMENT ME!
 boolean isUnchanging(ChangeType ct)
          DOCUMENT ME!
 void removeChangeListener(ChangeListener cl)
          DOCUMENT ME!
 void removeChangeListener(ChangeListener cl, ChangeType ct)
          DOCUMENT ME!
 void removeForwarder(ChangeForwarder cf, ChangeType ct)
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Unchangeable

public Unchangeable()
Method Detail

addChangeListener

public final void addChangeListener(ChangeListener cl)
DOCUMENT ME!

Specified by:
addChangeListener in interface Changeable
Parameters:
cl - DOCUMENT ME!

addChangeListener

public final void addChangeListener(ChangeListener cl,
                                    ChangeType ct)
DOCUMENT ME!

Specified by:
addChangeListener in interface Changeable
Parameters:
cl - DOCUMENT ME!
ct - DOCUMENT ME!

getListeners

public final java.util.Set getListeners(ChangeType ct)
DOCUMENT ME!

Parameters:
ct - DOCUMENT ME!
Returns:
DOCUMENT ME!

removeChangeListener

public final void removeChangeListener(ChangeListener cl)
DOCUMENT ME!

Specified by:
removeChangeListener in interface Changeable
Parameters:
cl - DOCUMENT ME!

removeChangeListener

public final void removeChangeListener(ChangeListener cl,
                                       ChangeType ct)
DOCUMENT ME!

Specified by:
removeChangeListener in interface Changeable
Parameters:
cl - DOCUMENT ME!
ct - DOCUMENT ME!

addForwarder

public final void addForwarder(ChangeForwarder cf,
                               ChangeType ct)
DOCUMENT ME!

Parameters:
cf - DOCUMENT ME!
ct - DOCUMENT ME!

removeForwarder

public final void removeForwarder(ChangeForwarder cf,
                                  ChangeType ct)
DOCUMENT ME!

Parameters:
cf - DOCUMENT ME!
ct - DOCUMENT ME!

getForwarders

public final java.util.Set getForwarders(ChangeType ct)
DOCUMENT ME!

Parameters:
ct - DOCUMENT ME!
Returns:
DOCUMENT ME!

isUnchanging

public final boolean isUnchanging(ChangeType ct)
DOCUMENT ME!

Specified by:
isUnchanging in interface Changeable
Parameters:
ct - DOCUMENT ME!
Returns:
DOCUMENT ME!