public static enum Heroku.ApiVersion extends Enum<Heroku.ApiVersion> implements Http.Header
Http.Header.Util
Modifier and Type | Method and Description |
---|---|
String |
getHeaderName() |
String |
getHeaderValue() |
static Heroku.ApiVersion |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Heroku.ApiVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Heroku.ApiVersion v2
public static final Heroku.ApiVersion v3
public static final String HEADER
public final int version
public static Heroku.ApiVersion[] values()
for (Heroku.ApiVersion c : Heroku.ApiVersion.values()) System.out.println(c);
public static Heroku.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 String getHeaderName()
getHeaderName
in interface Http.Header
public String getHeaderValue()
getHeaderValue
in interface Http.Header
Copyright © 2017. All rights reserved.