Enum FontVariant.Style
- java.lang.Object
-
- java.lang.Enum<FontVariant.Style>
-
- com.priint.pubserver.comet3.entity.FontVariant.Style
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<FontVariant.Style>
- Enclosing class:
- FontVariant
public static enum FontVariant.Style extends java.lang.Enum<FontVariant.Style>
The enum Style.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FontVariant.StylegetByName(FontVariant.Style other)Gets by name.static FontVariant.StylegetByName(FontVariant.Style other)Gets by name.java.lang.StringgetStyleIdentifier()Gets style identifier.static FontVariant.StylevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static FontVariant.Style[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ITALIC
public static final FontVariant.Style ITALIC
Italic style.
-
NORMAL
public static final FontVariant.Style NORMAL
Normal style.
-
-
Method Detail
-
values
public static FontVariant.Style[] 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 (FontVariant.Style c : FontVariant.Style.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FontVariant.Style 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
-
getStyleIdentifier
public java.lang.String getStyleIdentifier()
Gets style identifier.- Returns:
- the style identifier
-
getByName
public static FontVariant.Style getByName(FontVariant.Style other)
Gets by name.- Parameters:
other- the other- Returns:
- the by name
-
getByName
public static FontVariant.Style getByName(FontVariant.Style other)
Gets by name.- Parameters:
other- the other- Returns:
- the by name
-
-