Enum LogLevel
- java.lang.Object
-
- java.lang.Enum<LogLevel>
-
- com.epam.ta.reportportal.entity.enums.LogLevel
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisGreaterOrEqual(LogLevel r)Returnstrueif this Level has a higher or equal Level than the Level passed as argument,falseotherwise.static inttoCustomLogLevel(java.lang.String levelString)Convert the string passed as argument to a Level.inttoInt()static LogLeveltoLevel(int intLevel)Convert the string passed as argument to a Levelstatic java.util.Optional<LogLevel>toLevel(java.lang.String levelString)Convert the string passed as argument to a Level.java.lang.StringtoString()static LogLevelvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static LogLevel[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ERROR
public static final LogLevel ERROR
-
WARN
public static final LogLevel WARN
-
INFO
public static final LogLevel INFO
-
DEBUG
public static final LogLevel DEBUG
-
TRACE
public static final LogLevel TRACE
-
FATAL
public static final LogLevel FATAL
-
UNKNOWN
public static final LogLevel UNKNOWN
-
-
Field Detail
-
UNKNOWN_INT
public static final int UNKNOWN_INT
- See Also:
- Constant Field Values
-
FATAL_INT
public static final int FATAL_INT
- See Also:
- Constant Field Values
-
ERROR_INT
public static final int ERROR_INT
- See Also:
- Constant Field Values
-
WARN_INT
public static final int WARN_INT
- See Also:
- Constant Field Values
-
INFO_INT
public static final int INFO_INT
- See Also:
- Constant Field Values
-
DEBUG_INT
public static final int DEBUG_INT
- See Also:
- Constant Field Values
-
TRACE_INT
public static final int TRACE_INT
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static LogLevel[] 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 (LogLevel c : LogLevel.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LogLevel 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
-
toInt
public int toInt()
-
isGreaterOrEqual
public boolean isGreaterOrEqual(LogLevel r)
Returnstrueif this Level has a higher or equal Level than the Level passed as argument,falseotherwise.
-
toLevel
public static java.util.Optional<LogLevel> toLevel(java.lang.String levelString)
Convert the string passed as argument to a Level. If there is no such level throws exception
-
toCustomLogLevel
public static int toCustomLogLevel(java.lang.String levelString)
Convert the string passed as argument to a Level.
-
toLevel
public static LogLevel toLevel(int intLevel)
Convert the string passed as argument to a Level
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Enum<LogLevel>
-
-