Package pl.put.poznan.transformer.logic
Interface TextTransformer
-
- All Known Implementing Classes:
AcronymTransformer,CapitalizeTransformer,CharacterCounterTransformer,ExpansionTransformer,LatexTransformer,LowercaseTransformer,NumberTransformer,RemoveRepetition,ReverseTransformer,ShuffleTransformer,UppercaseTransformer,WordCounterTransformer
public interface TextTransformerThis interface is used to define the contract for text transformers. Each text transformer should implement this interface. The transform method should take a string as an argument and return a transformed string. The transformation should be defined by the implementing class. The transform method should not modify the original string. The transform method should return a new string with the transformation applied. The transform method should not return null. The transform method should return an empty string if the input string is empty. The transform method should not return a string with leading or trailing whitespaces.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Stringtransform(String text)This method should take a string as an argument and return a transformed string.
-