Files
design-patterns/02-structural/decorator/TextProcessor.java

10 lines
274 B
Java

package decorator;
/**
* Component — defines what all text processors do.
* Both the base implementation AND every decorator implement this.
* Sharing this type is what makes decorators stackable.
*/
public interface TextProcessor {
String process(String text);
}