2015-05-05 11:20:13 -07:00
|
|
|
|
//: patterns/trashvisitor/Visitable.java
|
2015-05-29 14:18:51 -07:00
|
|
|
|
// <20>2015 MindView LLC: see Copyright.txt
|
2015-05-05 11:20:13 -07:00
|
|
|
|
// An interface to add visitor functionality to
|
|
|
|
|
// the Trash hierarchy without modifying the
|
|
|
|
|
// base class.
|
|
|
|
|
package patterns.trashvisitor;
|
|
|
|
|
|
|
|
|
|
interface Visitable {
|
|
|
|
|
// The new method:
|
|
|
|
|
void accept(Visitor v);
|
|
|
|
|
} ///:~
|