com.heroku.api
Enum Heroku.ApiVersion
java.lang.Object
java.lang.Enum<Heroku.ApiVersion>
com.heroku.api.Heroku.ApiVersion
- All Implemented Interfaces:
- Http.Header, Serializable, Comparable<Heroku.ApiVersion>
- Enclosing class:
- Heroku
public static enum Heroku.ApiVersion
- extends Enum<Heroku.ApiVersion>
- implements Http.Header
Enum Constant Summary |
v2
|
v3
|
v2
public static final Heroku.ApiVersion v2
v3
public static final Heroku.ApiVersion v3
HEADER
public static final String HEADER
- See Also:
- Constant Field Values
version
public final int version
values
public static Heroku.ApiVersion[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (Heroku.ApiVersion c : Heroku.ApiVersion.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Heroku.ApiVersion valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
getHeaderName
public String getHeaderName()
- Specified by:
getHeaderName
in interface Http.Header
getHeaderValue
public String getHeaderValue()
- Specified by:
getHeaderValue
in interface Http.Header
Copyright © 2012. All Rights Reserved.