Package com.piketec.tpt.api
Enum Log.LogType
- java.lang.Object
-
- java.lang.Enum<Log.LogType>
-
- com.piketec.tpt.api.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-2024 Piketec GmbH - MIT License (MIT) - All rights reserved
-
-
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.
-
-
-
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 namejava.lang.NullPointerException
- if the argument is null
-
-