Interface StringConverter.WithArguments

All Superinterfaces:
Function<Object,String>, StringConverter
Enclosing interface:
StringConverter
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface StringConverter.WithArguments extends StringConverter
A StringConverter that accepts parsed argument arrays while retaining direct invocation through apply(Object). StringUtil passes structured arguments to this interface without flattening them. A direct String invocation splits on unescaped commas and resolves $ escapes; a direct String array is passed to applyArguments(String[]) unchanged. A null direct value is passed as null to applyArguments(String[]).
Since:
3.31
Author:
Eike Stepper
  • Method Details

    • applyArguments

      String applyArguments(String[] arguments)
      Applies this converter to already separated arguments.
      Parameters:
      arguments - the operands, with nested expressions already evaluated
      Returns:
      the converted result
    • apply

      default String apply(Object value)
      Specified by:
      apply in interface Function<Object,String>
      Specified by:
      apply in interface StringConverter