Enum Annotation
- java.lang.Object
-
- java.lang.Enum<Annotation>
-
- org.torproject.metrics.collector.conf.Annotation
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Annotation>
public enum Annotation extends java.lang.Enum<Annotation>
This enum contains all currently valid descriptor annotations.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BandwidthFile
BridgeExtraInfo
BridgePoolAssignment
BridgeServer
Cert
Consensus
ExitList
ExtraInfo
MicroConsensus
Microdescriptor
OnionPerf
Server
SnowflakeStats
Status
Vote
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
bytes()
java.lang.String
toString()
static Annotation
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Annotation[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BandwidthFile
public static final Annotation BandwidthFile
-
BridgeExtraInfo
public static final Annotation BridgeExtraInfo
-
BridgePoolAssignment
public static final Annotation BridgePoolAssignment
-
BridgeServer
public static final Annotation BridgeServer
-
Cert
public static final Annotation Cert
-
Consensus
public static final Annotation Consensus
-
ExitList
public static final Annotation ExitList
-
ExtraInfo
public static final Annotation ExtraInfo
-
MicroConsensus
public static final Annotation MicroConsensus
-
Microdescriptor
public static final Annotation Microdescriptor
-
Server
public static final Annotation Server
-
Status
public static final Annotation Status
-
OnionPerf
public static final Annotation OnionPerf
-
Vote
public static final Annotation Vote
-
SnowflakeStats
public static final Annotation SnowflakeStats
-
-
Method Detail
-
values
public static Annotation[] 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 (Annotation c : Annotation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Annotation 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
-
bytes
public byte[] bytes()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<Annotation>
-
-