Enum DescriptorType
- java.lang.Object
-
- java.lang.Enum<DescriptorType>
-
- org.torproject.metrics.onionoo.updater.DescriptorType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<DescriptorType>
public enum DescriptorType extends java.lang.Enum<DescriptorType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BRIDGE_EXTRA_INFOS
BRIDGE_SERVER_DESCRIPTORS
BRIDGE_STATUSES
EXIT_LISTS
RELAY_CONSENSUSES
RELAY_EXTRA_INFOS
RELAY_SERVER_DESCRIPTORS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDir()
static DescriptorType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static DescriptorType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RELAY_CONSENSUSES
public static final DescriptorType RELAY_CONSENSUSES
-
RELAY_SERVER_DESCRIPTORS
public static final DescriptorType RELAY_SERVER_DESCRIPTORS
-
RELAY_EXTRA_INFOS
public static final DescriptorType RELAY_EXTRA_INFOS
-
EXIT_LISTS
public static final DescriptorType EXIT_LISTS
-
BRIDGE_STATUSES
public static final DescriptorType BRIDGE_STATUSES
-
BRIDGE_SERVER_DESCRIPTORS
public static final DescriptorType BRIDGE_SERVER_DESCRIPTORS
-
BRIDGE_EXTRA_INFOS
public static final DescriptorType BRIDGE_EXTRA_INFOS
-
-
Method Detail
-
values
public static DescriptorType[] 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 (DescriptorType c : DescriptorType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DescriptorType 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
-
getDir
public java.lang.String getDir()
-
-