Enum LogColor

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

    public enum LogColor
    extends java.lang.Enum<LogColor>
    Contains prefixes to change the color of the text inside the console
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String toString()  
      static LogColor valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static LogColor[] 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, valueOf
      • Methods inherited from class java.lang.Object

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

      • RESET

        public static final LogColor RESET
        Resets the console color to default
      • BLACK

        public static final LogColor BLACK
        Sets text color to black
      • BLUE

        public static final LogColor BLUE
        Sets text color to blue
      • CYAN

        public static final LogColor CYAN
        Sets text color to cyan
      • GREEN

        public static final LogColor GREEN
        Sets text color to green
      • MAGENTA

        public static final LogColor MAGENTA
        Sets text color to magenta
      • RED

        public static final LogColor RED
        Sets text color to red
      • WHITE

        public static final LogColor WHITE
        Sets text color to white
      • YELLOW

        public static final LogColor YELLOW
        Sets text color to yellow
      • BRIGHT_BLACK

        public static final LogColor BRIGHT_BLACK
        Sets text color to dark gray
      • BRIGHT_BLUE

        public static final LogColor BRIGHT_BLUE
        Sets text color to brighter blue
      • BRIGHT_CYAN

        public static final LogColor BRIGHT_CYAN
        Sets text color to brighter cyan
      • BRIGHT_GREEN

        public static final LogColor BRIGHT_GREEN
        Sets text color to brighter green
      • BRIGHT_MAGENTA

        public static final LogColor BRIGHT_MAGENTA
        Sets text color to brighter magenta
      • BRIGHT_RED

        public static final LogColor BRIGHT_RED
        Sets text color to brighter red
      • BRIGHT_WHITE

        public static final LogColor BRIGHT_WHITE
        Sets text color to brighter white
      • BRIGHT_YELLOW

        public static final LogColor BRIGHT_YELLOW
        Sets text color to brighter yellow
      • ORANGE

        public static final LogColor ORANGE
        Sets text color to orange
      • BRIGHT_ORANGE

        public static final LogColor BRIGHT_ORANGE
        Sets text color to brighter orange
      • DARK_ORANGE

        public static final LogColor DARK_ORANGE
        Sets text color to darker orange
      • PURPLE

        public static final LogColor PURPLE
        Sets text color to purple
      • BRIGHT_PURPLE

        public static final LogColor BRIGHT_PURPLE
        Sets text color to brighter purple
      • DARK_PURPLE

        public static final LogColor DARK_PURPLE
        Sets text color to darker purple
      • DARK_BLUE

        public static final LogColor DARK_BLUE
        Sets text color to darker blue
      • DARK_CYAN

        public static final LogColor DARK_CYAN
        Sets text color to darker cyan
      • DARK_GREEN

        public static final LogColor DARK_GREEN
        Sets text color to darker green
      • DARK_MAGENTA

        public static final LogColor DARK_MAGENTA
        Sets text color to darker magenta
      • DARK_RED

        public static final LogColor DARK_RED
        Sets text color to darker red
      • DARK_WHITE

        public static final LogColor DARK_WHITE
        Sets text color to light gray
      • DARK_YELLOW

        public static final LogColor DARK_YELLOW
        Sets text color to darker yellow
      • BG_BLACK

        public static final LogColor BG_BLACK
        Sets background color to black
    • Method Detail

      • values

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

        public static LogColor 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
      • toString

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