public enum ColorType extends Enum<ColorType>
Enum Constant and Description |
---|
DANGER |
DEFAULT |
INFO |
PRIMARY |
SUCCESS |
WARNING |
Modifier and Type | Method and Description |
---|---|
String |
getType() |
static ColorType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ColorType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ColorType PRIMARY
public static final ColorType INFO
public static final ColorType SUCCESS
public static final ColorType WARNING
public static final ColorType DANGER
public static final ColorType DEFAULT
public static ColorType[] values()
for (ColorType c : ColorType.values()) System.out.println(c);
public static ColorType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getType()
Copyright © 2015. All rights reserved.