public.javadoc.org.spincast.core.response.AlertLevel.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spincast-website Show documentation
Show all versions of spincast-website Show documentation
Source code for the https://www.spincast.org website.
AlertLevel (org.spincast:spincast-framework 1.0.0 API)
org.spincast.core.response
Enum AlertLevel
- java.lang.Object
-
- java.lang.Enum<AlertLevel>
-
- org.spincast.core.response.AlertLevel
-
- All Implemented Interfaces:
- Serializable, Comparable<AlertLevel>
public enum AlertLevel
extends Enum<AlertLevel>
The possible levels of an Alert
-
-
Method Summary
All Methods Static Methods Concrete Methods
Modifier and Type
Method and Description
static AlertLevel
valueOf(String name)
Returns the enum constant of this type with the specified name.
static AlertLevel[]
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
-
-
Enum Constant Detail
-
ERROR
public static final AlertLevel ERROR
-
WARNING
public static final AlertLevel WARNING
-
SUCCESS
public static final AlertLevel SUCCESS
-
Method Detail
-
values
public static AlertLevel[] 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 (AlertLevel c : AlertLevel.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AlertLevel valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified name
NullPointerException
- if the argument is null
Copyright © 2019. All rights reserved.