Class TierEdit.DependentTierChangeChain<T>
java.lang.Object
ca.phon.app.session.editor.undo.TierEdit.DependentTierChangeChain<T>
- Type Parameters:
T- must match tier
- All Implemented Interfaces:
TierEdit.DependentTierChanges<T>
public static class TierEdit.DependentTierChangeChain<T>
extends Object
implements TierEdit.DependentTierChanges<T>
Chain dependent tier changes. Used if existing dependent tier changes are found for a tier.
E.g.,
DependentTierChanges myChanges = ...;
DependentTierChanges otherChanges = tier.getExtension(DependentTierChanges.class);
if(otherChanges != null) {
// order given is order performed
tier.putExtension(DependentTierChanges.class, new DependentTierChangeChain(myChanges, otherChanges);
} else {
tier.putExtension(DependentTierChanges.class, myChanges);
}
-
Constructor Summary
ConstructorsConstructorDescriptionDependentTierChangeChain(TierEdit.DependentTierChanges<T> changes, TierEdit.DependentTierChanges<T> otherChanges) -
Method Summary
Modifier and TypeMethodDescriptionvoidperformDependentTierChanges(TierEdit<T> tierEdit) Perform dependent tier changes, should throw a runtime exception (up to implementation) if given TierEdit parameterized type does not match our parameterized type.
-
Constructor Details
-
DependentTierChangeChain
public DependentTierChangeChain(TierEdit.DependentTierChanges<T> changes, TierEdit.DependentTierChanges<T> otherChanges)
-
-
Method Details
-
performDependentTierChanges
Description copied from interface:TierEdit.DependentTierChangesPerform dependent tier changes, should throw a runtime exception (up to implementation) if given TierEdit parameterized type does not match our parameterized type.- Specified by:
performDependentTierChangesin interfaceTierEdit.DependentTierChanges<T>- Parameters:
tierEdit-
-