Enum LogVerbosity
- java.lang.Object
-
- java.lang.Enum<LogVerbosity>
-
- io.openems.edge.bridge.modbus.api.LogVerbosity
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<LogVerbosity>
public enum LogVerbosity extends java.lang.Enum<LogVerbosity>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NONE
Show now logs.READS_AND_WRITES
Show verbose logs for modbus read and write requests.WRITES
Show logs for modbus write requests.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LogVerbosity
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static LogVerbosity[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final LogVerbosity NONE
Show now logs.
-
WRITES
public static final LogVerbosity WRITES
Show logs for modbus write requests.
-
READS_AND_WRITES
public static final LogVerbosity READS_AND_WRITES
Show verbose logs for modbus read and write requests.
-
-
Method Detail
-
values
public static LogVerbosity[] 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 (LogVerbosity c : LogVerbosity.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LogVerbosity 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
-
-