@Incubating public enum SwiftVersion extends java.lang.Enum<SwiftVersion>
Modifier and Type | Method | Description |
---|---|---|
int |
getVersion() |
Returns the Swift language version in numerical value
|
static SwiftVersion |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static SwiftVersion[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SwiftVersion SWIFT3
public static final SwiftVersion SWIFT4
public static SwiftVersion[] values()
for (SwiftVersion c : SwiftVersion.values()) System.out.println(c);
public static SwiftVersion valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getVersion()