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>
public enum TomlVersion extends java.lang.Enum<TomlVersion>
Supported TOML specification versions.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) TomlVersion
canonical
-
Constructor Summary
Constructors Modifier Constructor Description private
TomlVersion(@Nullable TomlVersion canonical)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) boolean
after(TomlVersion other)
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 Detail
-
V0_4_0
public static final TomlVersion 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
public static final TomlVersion 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
public static final TomlVersion 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
public static final TomlVersion LATEST
The latest stable specification of TOML.
-
HEAD
public static final TomlVersion 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 Detail
-
canonical
final TomlVersion canonical
-
-
Constructor Detail
-
TomlVersion
private TomlVersion(@Nullable TomlVersion canonical)
-
-
Method Detail
-
values
public static TomlVersion[] 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 (TomlVersion c : TomlVersion.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TomlVersion valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
after
boolean after(TomlVersion other)
-
-