com.heroku.api
Enum Heroku.ApiVersion

java.lang.Object
  extended by java.lang.Enum<Heroku.ApiVersion>
      extended by 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


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.heroku.api.http.Http.Header
Http.Header.Util
 
Enum Constant Summary
v2
           
v3
           
 
Field Summary
static String HEADER
           
 int version
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

v2

public static final Heroku.ApiVersion v2

v3

public static final Heroku.ApiVersion v3
Field Detail

HEADER

public static final String HEADER
See Also:
Constant Field Values

version

public final int version
Method Detail

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.