Package com.streamconverter.command.rule
Class PassThroughRule
java.lang.Object
com.streamconverter.command.rule.PassThroughRule
- All Implemented Interfaces:
IRule
Pass-through rule implementation
This rule implementation returns the input string unchanged. Useful as a default rule or for testing purposes when no transformation is needed.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
PassThroughRule
public PassThroughRule()Default constructor.
-
-
Method Details
-
apply
Apply the pass-through rule - returns input unchanged.- Specified by:
apply
in interfaceIRule
- Parameters:
input
- the input string to process- Returns:
- the same input string without any modifications
- Throws:
IllegalArgumentException
- if input is null
-