Enum Class LogExtension

java.lang.Object
java.lang.Enum<LogExtension>
ml.karmaconfigs.api.common.utils.enums.LogExtension
All Implemented Interfaces:
Serializable, Comparable<LogExtension>, java.lang.constant.Constable

public enum LogExtension extends Enum<LogExtension>
Karma logs known file extensions
  • Enum Constant Details

    • LOG

      public static final LogExtension LOG
      Classic .log file
    • MARKDOWN

      public static final LogExtension MARKDOWN
      Modern and good-look .md file
  • Method Details

    • values

      public static LogExtension[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static LogExtension valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • fileExtension

      public String fileExtension()
      Get the log extension as a file extension
      Returns:
      the log extension as file extension