Package org.tomlj
Enum Class TomlVersion
- All Implemented Interfaces:
Serializable
,Comparable<TomlVersion>
,Constable
Supported TOML specification versions.
-
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
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) boolean
after
(TomlVersion other) static TomlVersion
Returns the enum constant of this class with the specified name.static TomlVersion[]
values()
Returns an array containing the constants of this enum class, 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.
-
-
Field Details
-
canonical
-
-
Constructor Details
-
TomlVersion
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
after
-