Package 

Class StringsKt

  • All Implemented Interfaces:

    
    public final class StringsKt
    
                        
    • Constructor Detail

    • Method Detail

      • getEol

         final String getEol()

        Runtime specific end of line.

      • filterVars

         final static String filterVars(String $self, Map<?, ?> parameters)

        Filter the target string substituting each key by its value. The keys format resembles Mustache's one: {{key}} and all occurrences are replaced by the supplied value.

        If a variable does not have a parameter, it is left as it is.

        Parameters:
        parameters - The map with the list of key/value tuples.
      • filterVars

         final static String filterVars(String $self, Pair<?, ?> parameters)

        Filter the target string substituting each key by its value. The keys format resembles Mustache's one: {{key}} and all occurrences are replaced by the supplied value.

        If a variable does not have a parameter, it is left as it is.

        Parameters:
        parameters - vararg of key/value pairs.
      • snakeToCamel

         final static String snakeToCamel(String $self)

        Transform the target string from snake case to camel case.

      • camelToSnake

         final static String camelToSnake(String $self)

        Transform the target string from camel case to snake case.

      • banner

         final static String banner(String $self, String bannerDelimiter)

        Format the string as a banner with a delimiter above and below text. The character used to render the delimiter is defined.

        Parameters:
        bannerDelimiter - Delimiter char for banners.