Enum Class Strings.Casing

java.lang.Object
java.lang.Enum<Strings.Casing>
org.midheaven.lang.Strings.Casing
All Implemented Interfaces:
Serializable, Comparable<Strings.Casing>, Constable
Enclosing class:
Strings

public static enum Strings.Casing extends Enum<Strings.Casing>
  • Enum Constant Details

    • UNKNOWN

      public static final Strings.Casing UNKNOWN
    • PLAIN

      public static final Strings.Casing PLAIN
      Any text separated by spaces
    • UPPER

      public static final Strings.Casing UPPER
      all in upper case letters: "Hello world" is "HELLO_WORLD"
    • LOWER

      public static final Strings.Casing LOWER
      Also known as snake case all in lower case letters: "Hello world" is "hello_world"
    • PASCAL

      public static final Strings.Casing PASCAL
      First letter of word is upper case, the rest is lowercase. New words have uppercase initial: "Hello world" is "HelloWorld"
    • CAMEL

      public static final Strings.Casing CAMEL
      First letter of word is lower case, the rest is lowercase. New words have uppercase initial: "Hello world" is "helloWorld"
    • URL

      public static final Strings.Casing URL
      also known as kebab case all in lower case letters: "Hello world" is "hello-world"
  • Method Details

    • values

      public static Strings.Casing[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Strings.Casing valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • splitWords

      public Strings.Splitter splitWords(CharSequence text)
      Performs splitWords.
      Parameters:
      text - the text value
      Returns:
      the result of splitWords
    • joinWords

      public String joinWords(Strings.Splitter splitter)
      Performs joinWords.
      Parameters:
      splitter - the splitter value
      Returns:
      the result of joinWords