Package com.jwebmp.plugins.toastr
Enum ToastrType
- java.lang.Object
-
- java.lang.Enum<ToastrType>
-
- com.jwebmp.plugins.toastr.ToastrType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ToastrType>
public enum ToastrType extends java.lang.Enum<ToastrType>
The types of toasts that are available- Since:
- 09 Jun 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 ToastrTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ToastrType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Success
public static final ToastrType Success
A success toastr type
-
Info
public static final ToastrType Info
An info toastr type
-
Warning
public static final ToastrType Warning
A warning toastr type
-
Error
public static final ToastrType Error
An error toastr type
-
-
Method Detail
-
values
public static ToastrType[] 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 (ToastrType c : ToastrType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ToastrType 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<ToastrType>- Returns:
-
-