Package com.guicedee.logger.model
Enum LogProperties
- java.lang.Object
-
- java.lang.Enum<LogProperties>
-
- com.guicedee.logger.model.LogProperties
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<LogProperties>
public enum LogProperties extends java.lang.Enum<LogProperties>
- Since:
- 16 Jul 2017
- Author:
- GedMarc
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringtoString()Returns the name or the data contained withinstatic LogPropertiesvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static LogProperties[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Level
public static final LogProperties Level
-
Date
public static final LogProperties Date
-
Message
public static final LogProperties Message
-
Name
public static final LogProperties Name
-
Method
public static final LogProperties Method
-
Class
public static final LogProperties Class
-
Exception
public static final LogProperties Exception
-
-
Method Detail
-
values
public static LogProperties[] 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 (LogProperties c : LogProperties.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LogProperties 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
-
toString
public java.lang.String toString()
Returns the name or the data contained within- Overrides:
toStringin classjava.lang.Enum<LogProperties>- Returns:
- The data or the name
-
-