Serializable
, Comparable<SwiftVersion>
@Incubating public enum SwiftVersion extends Enum<SwiftVersion>
Enum Constant | Description |
---|---|
SWIFT3 |
|
SWIFT4 |
|
SWIFT5 |
Swift 5 major version.
|
Modifier and Type | Method | Description |
---|---|---|
int |
getVersion() |
Returns the Swift language version in numerical value
|
static SwiftVersion |
valueOf(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 final SwiftVersion SWIFT5
public static SwiftVersion[] values()
for (SwiftVersion c : SwiftVersion.values()) System.out.println(c);
public static SwiftVersion valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getVersion()