Enum Log.LogType

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

    public static enum Log.LogType
    extends java.lang.Enum<Log.LogType>
    The log type or severity of a log message.
    Author:
    Copyright (c) 2014-2020 Piketec GmbH - MIT License (MIT) - All rights reserved
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      ERROR
      Log messages, that represents an error
      INFO
      Log messages, that represents an information
      WARNING
      Log messages, that represents a warning
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Log.LogType valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static Log.LogType[] 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

      • ERROR

        public static final Log.LogType ERROR
        Log messages, that represents an error
      • WARNING

        public static final Log.LogType WARNING
        Log messages, that represents a warning
      • INFO

        public static final Log.LogType INFO
        Log messages, that represents an information
    • Method Detail

      • values

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

        public static Log.LogType 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