public class Unchangeable extends Object implements Changeable
Constructor and Description |
---|
Unchangeable() |
Modifier and Type | Method and Description |
---|---|
void |
addChangeListener(ChangeListener cl)
Add a listener that will be informed of all changes.
|
void |
addChangeListener(ChangeListener cl,
ChangeType ct)
Add a listener that will be informed of changes of a given type.
|
void |
addForwarder(ChangeForwarder cf,
ChangeType ct) |
Set |
getForwarders(ChangeType ct) |
Set |
getListeners(ChangeType ct) |
boolean |
isUnchanging(ChangeType ct)
A particular ChangeType can never be raised by this Changeable.
|
void |
removeChangeListener(ChangeListener cl)
Remove a listener that was interested in all types of changes.
|
void |
removeChangeListener(ChangeListener cl,
ChangeType ct)
Remove a listener that was interested in a specific types of changes.
|
void |
removeForwarder(ChangeForwarder cf,
ChangeType ct) |
public Unchangeable()
public final void addChangeListener(ChangeListener cl)
Changeable
addChangeListener
in interface Changeable
cl
- the ChangeListener to addpublic final void addChangeListener(ChangeListener cl, ChangeType ct)
Changeable
addChangeListener
in interface Changeable
cl
- the ChangeListenerct
- the ChangeType it is to be informed ofpublic final Set getListeners(ChangeType ct)
public final void removeChangeListener(ChangeListener cl)
Changeable
removeChangeListener
in interface Changeable
cl
- a ChangeListener to removepublic final void removeChangeListener(ChangeListener cl, ChangeType ct)
Changeable
removeChangeListener
in interface Changeable
cl
- a ChangeListener to removect
- the ChangeType that it was interested inpublic final void addForwarder(ChangeForwarder cf, ChangeType ct)
public final void removeForwarder(ChangeForwarder cf, ChangeType ct)
public final Set getForwarders(ChangeType ct)
public final boolean isUnchanging(ChangeType ct)
Changeable
A particular ChangeType can never be raised by this Changeable.
If this returns true, then it is guaranteed that change events of this type (and all child types) can never under any circumstances be fired by this Changeable instance. If it returns false, that does not mean that this type of event will or even can be raised, but that it is worth registering listeners incase.
isUnchanging
in interface Changeable
ct
- the ChangeType to checkCopyright © 2014 BioJava. All rights reserved.