Class PassThroughRule

java.lang.Object
com.streamconverter.command.rule.PassThroughRule
All Implemented Interfaces:
IRule

public class PassThroughRule extends Object implements 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 Details

  • Method Details

    • apply

      public String apply(String input)
      Apply the pass-through rule - returns input unchanged.
      Specified by:
      apply in interface IRule
      Parameters:
      input - the input string to process
      Returns:
      the same input string without any modifications
      Throws:
      IllegalArgumentException - if input is null