Package org.tomlj
Enum TomlVersion
java.lang.Object
java.lang.Enum<TomlVersion>
org.tomlj.TomlVersion
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<TomlVersion>
,java.lang.constant.Constable
public enum TomlVersion extends java.lang.Enum<TomlVersion>
Supported TOML specification versions.
-
Nested Class Summary
-
Enum Constant Summary
-
Method Summary
Modifier and Type Method Description static TomlVersion
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static TomlVersion[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
V0_4_0
The 0.4.0 version of TOML.This specification can be found at https://github.com/toml-lang/toml/blob/master/versions/en/toml-v0.4.0.md.
-
V0_5_0
The 0.5.0 version of TOML.This specification can be found at https://github.com/toml-lang/toml/blob/master/versions/en/toml-v0.5.0.md.
-
V1_0_0
The 1.0.0 version of TOML.This specification can be found at https://github.com/toml-lang/toml/blob/1.0.0/toml.md.
-
LATEST
The latest stable specification of TOML. -
HEAD
The head (development) specification of TOML.The latest specification can be found at https://github.com/toml-lang/toml/blob/master/toml.md.
Note: As the specification is under active development, this implementation may not match the latest changes.
-
-
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-