Inheritance diagram for behavioral::TMutable:
Public Methods | |
TMutable () | |
void | addMutator (IMutator tMUTATOR) |
void | deleteMutator (IMutator tMUTATOR) |
void | deleteMutators () |
Clears the mutator list so that this object no longer has any mutators. | |
void | setNeedMutation () |
int | countMutators () |
boolean | needMutation () |
void | notifyMutators () |
void | notifyMutators (Object tARGUMENT) |
Protected Methods | |
void | clearNeedMutation () |
Protected Attributes | |
Vector | tMutatorVector |
Vector for mutators. |
When an mutable object is newly created, its set of mutators is empty. Two mutators are considered the same if and only if the equals method returns true for them.
Definition at line 52 of file TMutable.java.
|
Builds a new instance.
Definition at line 85 of file TMutable.java. References behavioral::TMutable::tMutatorVector. |
|
Adds an mutator to the set of mutators for this object, provided that it is not the same as some mutator already in the set.
Definition at line 96 of file TMutable.java. References behavioral::TMutable::tMutatorVector. |
|
Indicates that this object has no longer need for mutation, or that it has already notified all of its mutators of its most recent change, so that the needMutation method will now return false. Definition at line 71 of file TMutable.java. Referenced by behavioral::TMutable::notifyMutators(). |
|
Returns the number of mutators of this mutable object.
Definition at line 134 of file TMutable.java. References behavioral::TMutable::tMutatorVector. |
|
Deletes an mutator from the set of mutators of this object.
Definition at line 105 of file TMutable.java. References behavioral::TMutable::tMutatorVector. |
|
Tests if this object need to be mutated.
Definition at line 143 of file TMutable.java. Referenced by behavioral::TMutable::notifyMutators(). |
|
If this object need a mutation, as indicated by the needMutation method, then it notifies all of its mutators and calls the clearNeedMutation method to indicate that this object has no longer need for mutation.
Definition at line 167 of file TMutable.java. References behavioral::TMutable::clearNeedMutation(), behavioral::TMutable::needMutation(), and behavioral::TMutable::tMutatorVector. |
|
If this object need a mutation, as indicated by the needMutation method, then it notifies all of its mutators and calls the clearNeedMutation method to indicate that this object has no longer need for mutation. Definition at line 154 of file TMutable.java. |
|
Marks this mutable object as having been changed; the needMutation method will now return true. Definition at line 120 of file TMutable.java. |