Enum LogUI

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<LogUI>

    public enum LogUI
    extends java.lang.Enum<LogUI>
    具体规则 字背景颜色范围: 40--49 字颜色: 30--39 40: 黑 30: 黑 41:红 31: 红 42:绿 32: 绿 43:黄 33: 黄 44:蓝 34: 蓝 45:紫 35: 紫 46:深绿 36: 深绿 47:白色 37: 白色

    输出特效格式控制 033[0m 关闭所有属性 033[1m 设置高亮度 03[4m 下划线 033[5m 闪烁 033[7m 反显 033[8m 消隐 033[30m -- \033[37m 设置前景色 033[40m -- \033[47m 设置背景色

    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getValue()  
      static LogUI valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static LogUI[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • C_INFO

        public static final LogUI C_INFO
      • C_HIGH

        public static final LogUI C_HIGH
      • C_ERROR

        public static final LogUI C_ERROR
      • C_WARN

        public static final LogUI C_WARN
      • C_BLACK_GREEN

        public static final LogUI C_BLACK_GREEN
      • E_NORMAL

        public static final LogUI E_NORMAL
    • Method Detail

      • values

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

        public static LogUI 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
      • getValue

        public java.lang.String getValue()