Package org.jenkins.ui.icon
Enum IconFormat
- java.lang.Object
-
- java.lang.Enum<IconFormat>
-
- org.jenkins.ui.icon.IconFormat
-
- All Implemented Interfaces:
Serializable
,Comparable<IconFormat>
public enum IconFormat extends Enum<IconFormat>
Format for the icon.- Since:
- 2.283
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EXTERNAL_SVG_SPRITE
IMG
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IconFormat
valueOf(String name)
Returns the enum constant of this type with the specified name.static IconFormat[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
IMG
public static final IconFormat IMG
-
EXTERNAL_SVG_SPRITE
public static final IconFormat EXTERNAL_SVG_SPRITE
-
-
Method Detail
-
values
public static IconFormat[] 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 (IconFormat c : IconFormat.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IconFormat 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 nameNullPointerException
- if the argument is null
-
-