Package io.avaje.jsonb
Enum Json.Naming
- java.lang.Object
-
- java.lang.Enum<Json.Naming>
-
- io.avaje.jsonb.Json.Naming
-
- All Implemented Interfaces:
Serializable
,Comparable<Json.Naming>
- Enclosing class:
- Json
public static enum Json.Naming extends Enum<Json.Naming>
The naming convention that we can use for a given type.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description LowerHyphen
LowerSpace
LowerUnderscore
Match
UpperCamel
UpperHyphen
UpperSpace
UpperUnderscore
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Json.Naming
valueOf(String name)
Returns the enum constant of this type with the specified name.static Json.Naming[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Match
public static final Json.Naming Match
-
LowerHyphen
public static final Json.Naming LowerHyphen
-
LowerUnderscore
public static final Json.Naming LowerUnderscore
-
LowerSpace
public static final Json.Naming LowerSpace
-
UpperCamel
public static final Json.Naming UpperCamel
-
UpperHyphen
public static final Json.Naming UpperHyphen
-
UpperUnderscore
public static final Json.Naming UpperUnderscore
-
UpperSpace
public static final Json.Naming UpperSpace
-
-
Method Detail
-
values
public static Json.Naming[] 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 (Json.Naming c : Json.Naming.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Json.Naming 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 nameNullPointerException
- if the argument is null
-
-