@Incubating public enum SwiftVersion extends Enum<SwiftVersion>
Modifier and Type | Method and 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 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()