Enum OteStats.StatType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<OteStats.StatType>
    Enclosing class:

    public static enum OteStats.StatType
    extends java.lang.Enum<OteStats.StatType>
    Enum defining the distinct statistics (types of registrar actions) to record.
    • Field Detail


        public static final com.google.common.collect.ImmutableList<OteStats.StatType> REQUIRED_STAT_TYPES
        StatTypes with a non-zero requirement
    • Method Detail

      • values

        public static OteStats.StatType[] 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 (OteStats.StatType c : OteStats.StatType.values())
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static OteStats.StatType 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.)
        name - the name of the enum constant to be returned.
        the enum constant with the specified name
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getRequirement

        public int getRequirement()
        Returns the number of times this StatType must be performed.
      • getDescription

        public java.lang.String getDescription()
        Returns a more human-readable translation of the enum constant.