Which pattern in addition to the chain of responsibility can be used to remove stage in the chain once that condition is met.
ex. A chain is for data type checking given value X is checked Is X String -> Is X Bool -> Is X Int-> Is X double
If X is Integer then next time chain must be
Is X String -> Is X Bool -> Is X double
Aucun commentaire:
Enregistrer un commentaire