10 lines
274 B
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);
|
|
}
|