Enum WordCase

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<WordCase>

    enum WordCase
    extends java.lang.Enum<WordCase>
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      private static class  WordCase.CharCase  
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      LOWER
      e.g.
      MIXED
      e.g.
      NEUTRAL
      e.g "-" or "/" or "42"
      TITLE
      e.g.
      UPPER
      e.g.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private WordCase()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) static WordCase caseOf​(char[] word, int length)  
      (package private) static WordCase caseOf​(java.lang.CharSequence word)  
      (package private) static WordCase caseOf​(java.lang.CharSequence word, int length)  
      private static WordCase.CharCase charCase​(char c)  
      private static WordCase get​(WordCase.CharCase startCase, boolean seenUpper, boolean seenLower)  
      static WordCase valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static WordCase[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • UPPER

        public static final WordCase UPPER
        e.g. WORD
      • TITLE

        public static final WordCase TITLE
        e.g. Word
      • LOWER

        public static final WordCase LOWER
        e.g. word
      • MIXED

        public static final WordCase MIXED
        e.g. WoRd or wOrd
      • NEUTRAL

        public static final WordCase NEUTRAL
        e.g "-" or "/" or "42"
    • Constructor Detail

      • WordCase

        private WordCase()
    • Method Detail

      • values

        public static WordCase[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (WordCase c : WordCase.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static WordCase valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • caseOf

        static WordCase caseOf​(char[] word,
                               int length)
      • caseOf

        static WordCase caseOf​(java.lang.CharSequence word)
      • caseOf

        static WordCase caseOf​(java.lang.CharSequence word,
                               int length)