Package gov.nih.mipav.view
Enum Preferences.LogLevel
- java.lang.Object
-
- java.lang.Enum<Preferences.LogLevel>
-
- gov.nih.mipav.view.Preferences.LogLevel
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Preferences.LogLevel>
- Enclosing class:
- Preferences
public static enum Preferences.LogLevel extends java.lang.Enum<Preferences.LogLevel>
-
-
Field Summary
Fields Modifier and Type Field Description private int
num
-
Constructor Summary
Constructors Modifier Constructor Description private
LogLevel(int num)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Preferences.LogLevel
fromString(java.lang.String str)
boolean
isEqualOrGreaterThan(Preferences.LogLevel other)
boolean
isSetLessThan(Preferences.LogLevel other)
java.lang.String
toString()
static java.lang.String[]
toStringArray()
static Preferences.LogLevel
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Preferences.LogLevel[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OFF
public static final Preferences.LogLevel OFF
-
DEBUG
public static final Preferences.LogLevel DEBUG
-
CONFIG
public static final Preferences.LogLevel CONFIG
-
INFO
public static final Preferences.LogLevel INFO
-
WARN
public static final Preferences.LogLevel WARN
-
SEVERE
public static final Preferences.LogLevel SEVERE
-
-
Method Detail
-
values
public static Preferences.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 (Preferences.LogLevel c : Preferences.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 Preferences.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
-
isSetLessThan
public boolean isSetLessThan(Preferences.LogLevel other)
-
isEqualOrGreaterThan
public boolean isEqualOrGreaterThan(Preferences.LogLevel other)
-
fromString
public static Preferences.LogLevel fromString(java.lang.String str)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<Preferences.LogLevel>
-
toStringArray
public static java.lang.String[] toStringArray()
-
-