Class StringFunctions.Join

java.lang.Object
org.apache.juneau.commons.svl.TypedFunction
org.apache.juneau.commons.svl.functions.StringFunctions.Join
All Implemented Interfaces:
VarFunction
Enclosing class:
StringFunctions

public static class StringFunctions.Join extends TypedFunction
#{join(separator, parts...)} — concatenates parts with separator between each pair.
Example:

#{join("/", ${tenant}, ${id})} → acme/42

  • Constructor Details

    • Join

      public Join()
  • Method Details

    • name

      public String name()
      Description copied from interface: VarFunction
      The function's invocation name as it appears between #{} and the opening parenthesis in the template. Must consist of ASCII letters, digits, and underscores; must begin with a letter.
      Returns:
      The invocation name. Never null or empty.
    • invoke

      public String invoke(String separator, String[] parts)