Enum DescriptorHistory
- java.lang.Object
-
- java.lang.Enum<DescriptorHistory>
-
- org.torproject.metrics.onionoo.updater.DescriptorHistory
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<DescriptorHistory>
public enum DescriptorHistory extends java.lang.Enum<DescriptorHistory>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ARCHIVED_HISTORY
BRIDGE_EXTRAINFO_HISTORY
BRIDGE_SERVER_HISTORY
BRIDGE_STATUS_HISTORY
EXIT_LIST_HISTORY
RELAY_CONSENSUS_HISTORY
RELAY_EXTRAINFO_HISTORY
RELAY_SERVER_HISTORY
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getFileName()
static DescriptorHistory
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static DescriptorHistory[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RELAY_CONSENSUS_HISTORY
public static final DescriptorHistory RELAY_CONSENSUS_HISTORY
-
RELAY_SERVER_HISTORY
public static final DescriptorHistory RELAY_SERVER_HISTORY
-
RELAY_EXTRAINFO_HISTORY
public static final DescriptorHistory RELAY_EXTRAINFO_HISTORY
-
EXIT_LIST_HISTORY
public static final DescriptorHistory EXIT_LIST_HISTORY
-
BRIDGE_STATUS_HISTORY
public static final DescriptorHistory BRIDGE_STATUS_HISTORY
-
BRIDGE_SERVER_HISTORY
public static final DescriptorHistory BRIDGE_SERVER_HISTORY
-
BRIDGE_EXTRAINFO_HISTORY
public static final DescriptorHistory BRIDGE_EXTRAINFO_HISTORY
-
ARCHIVED_HISTORY
public static final DescriptorHistory ARCHIVED_HISTORY
-
-
Method Detail
-
values
public static DescriptorHistory[] 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 (DescriptorHistory c : DescriptorHistory.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DescriptorHistory valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getFileName
public java.lang.String getFileName()
-
-