public enum ApiVersion extends Enum<ApiVersion> implements Producible<ApiVersion>
Enum Constant and Description |
---|
V2
Version 2 (supported by Spring Boot 2.0+).
|
V3
Version 3 (supported by Spring Boot 2.2+).
|
Modifier and Type | Field and Description |
---|---|
static ApiVersion |
LATEST
The latest API version.
|
Modifier and Type | Method and Description |
---|---|
MimeType |
getProducedMimeType()
Mime type that can be produced.
|
static ApiVersion |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ApiVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
isDefault
public static final ApiVersion V2
public static final ApiVersion V3
public static final ApiVersion LATEST
public static ApiVersion[] values()
for (ApiVersion c : ApiVersion.values()) System.out.println(c);
public static ApiVersion 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 MimeType getProducedMimeType()
Producible
getProducedMimeType
in interface Producible<ApiVersion>