Enum 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 Detail

      • BandwidthFile

        public static final Annotation BandwidthFile
      • BridgedbMetrics

        public static final Annotation BridgedbMetrics
      • BridgeExtraInfo

        public static final Annotation BridgeExtraInfo
      • BridgePoolAssignment

        public static final Annotation BridgePoolAssignment
      • BridgeServer

        public static final Annotation BridgeServer
      • 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
      • OnionPerf

        public static final Annotation OnionPerf
      • 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 name
        java.lang.NullPointerException - if the argument is null
      • bytes

        public byte[] bytes()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Enum<Annotation>