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

15 lines
377 B
Java

package decorator;
/**
* Concrete Component — the base object being decorated.
* Does nothing special: just returns the text as-is.
* All decorators wrap this (or other decorators on top of it).
*/
public class PlainTextProcessor implements TextProcessor {
@Override
public String process(String text) {
return text; // base: no transformation
}
}