Class CasesKt

  • All Implemented Interfaces:

    
    public final class CasesKt
    
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final static Regex CAMEL_CASE
      private final static Regex PASCAL_CASE
      private final static Regex SNAKE_CASE
      private final static Regex KEBAB_CASE
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Regex getCAMEL_CASE()
      final Regex getPASCAL_CASE()
      final Regex getSNAKE_CASE()
      final Regex getKEBAB_CASE()
      final static List<String> camelToWords(String $self)
      final static List<String> snakeToWords(String $self)
      final static List<String> kebabToWords(String $self)
      final static List<String> toWords(List<String> $self)
      final static String toWords(Enum<?> $self)
      final static String wordsToCamel(List<String> $self)
      final static String wordsToPascal(List<String> $self)
      final static String wordsToSnake(List<String> $self)
      final static String wordsToKebab(List<String> $self)
      final static String wordsToTitle(List<String> $self)
      final static String wordsToSentence(List<String> $self)
      final static String snakeToCamel(String $self) Transform the target string from snake case to camel case.
      final static String camelToSnake(String $self) Transform the target string from camel case to snake case.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • camelToWords

         final static List<String> camelToWords(String $self)
      • snakeToWords

         final static List<String> snakeToWords(String $self)
      • kebabToWords

         final static List<String> kebabToWords(String $self)
      • toWords

         final static List<String> toWords(List<String> $self)
      • toWords

         final static String toWords(Enum<?> $self)
      • wordsToCamel

         final static String wordsToCamel(List<String> $self)
      • wordsToPascal

         final static String wordsToPascal(List<String> $self)
      • wordsToSnake

         final static String wordsToSnake(List<String> $self)
      • wordsToKebab

         final static String wordsToKebab(List<String> $self)
      • wordsToTitle

         final static String wordsToTitle(List<String> $self)
      • 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.