Enum Class ToastrType

java.lang.Object
java.lang.Enum<ToastrType>
com.jwebmp.plugins.toastr.ToastrType
All Implemented Interfaces:
Serializable, Comparable<ToastrType>, Constable

public enum ToastrType extends Enum<ToastrType>
The types of toasts that are available
Since:
09 Jun 2017
Author:
GedMarc
  • Enum Constant Details

    • 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 Details

    • values

      public static ToastrType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ToastrType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • toString

      public String toString()
      Returns the name or the data contained within
      Overrides:
      toString in class Enum<ToastrType>
      Returns: