Enum Encoding.StandardNaming

java.lang.Object
java.lang.Enum<Encoding.StandardNaming>
org.immutables.encode.Encoding.StandardNaming
All Implemented Interfaces:
Serializable, Comparable<Encoding.StandardNaming>, java.lang.constant.Constable
Enclosing class:
Encoding

public static enum Encoding.StandardNaming extends Enum<Encoding.StandardNaming>
Standard namings can be used to reuse standard styles, like the ones defined in Value.Immutable.Style for the custom-defined elements in encoding. If Encoding.StandardNaming is used with the generator other than Immutables which do not have notion of namings/styles, then, typical default values will be used.
  • Enum Constant Details

  • Field Details

    • pattern

      public final String pattern
    • depluralize

      public final boolean depluralize
  • Constructor Details

    • StandardNaming

      private StandardNaming(String pattern)
    • StandardNaming

      private StandardNaming(String pattern, boolean depluralize)
  • Method Details

    • values

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

      public static Encoding.StandardNaming valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null