Package org.immutables.encode
Enum Encoding.StandardNaming
- All Implemented Interfaces:
Serializable,Comparable<Encoding.StandardNaming>,java.lang.constant.Constable
- Enclosing class:
Encoding
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.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateStandardNaming(String pattern) privateStandardNaming(String pattern, boolean depluralize) -
Method Summary
Modifier and TypeMethodDescriptionstatic Encoding.StandardNamingReturns the enum constant of this type with the specified name.static Encoding.StandardNaming[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NONE
no standard naming is used. -
GET
naming of the accessor method. as accessors are detected, this naming would signalize the need to copy current detected accessors naming to some other element. -
INIT
builder init method. -
WITH
with copy method. -
ADD
builder add method, depluralized. -
ADD_ALL
builder add all method. -
PUT
builder put method, depluralized. -
PUT_ALL
builder put all method.
-
-
Field Details
-
pattern
-
depluralize
public final boolean depluralize
-
-
Constructor Details
-
StandardNaming
-
StandardNaming
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-