com.twitter.common.util
Enum BuildInfo.Key

java.lang.Object
  extended by java.lang.Enum<BuildInfo.Key>
      extended by com.twitter.common.util.BuildInfo.Key
All Implemented Interfaces:
Serializable, Comparable<BuildInfo.Key>
Enclosing class:
BuildInfo

public static enum BuildInfo.Key
extends Enum<BuildInfo.Key>

Values of keys that are expected to exist in the loaded properties file.


Enum Constant Summary
DATE
           
GIT_BRANCHNAME
           
GIT_REVISION
           
GIT_TAG
           
MACHINE
           
PATH
           
TIME
           
TIMESTAMP
           
USER
           
 
Field Summary
 String value
           
 
Method Summary
static BuildInfo.Key valueOf(String name)
          Returns the enum constant of this type with the specified name.
static BuildInfo.Key[] 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

PATH

public static final BuildInfo.Key PATH

USER

public static final BuildInfo.Key USER

MACHINE

public static final BuildInfo.Key MACHINE

DATE

public static final BuildInfo.Key DATE

TIME

public static final BuildInfo.Key TIME

TIMESTAMP

public static final BuildInfo.Key TIMESTAMP

GIT_TAG

public static final BuildInfo.Key GIT_TAG

GIT_REVISION

public static final BuildInfo.Key GIT_REVISION

GIT_BRANCHNAME

public static final BuildInfo.Key GIT_BRANCHNAME
Field Detail

value

public final String value
Method Detail

values

public static BuildInfo.Key[] 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 (BuildInfo.Key c : BuildInfo.Key.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static BuildInfo.Key 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