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

11 lines
264 B
Java

package decorator;
/**
* Component interface — defines what all text processors do.
* Both the concrete processor AND all decorators implement this.
* This is what makes them stackable.
*/
public interface TextProcessor {
String process(String text);
}