Package io.markdom.common
Enum MarkdomHeadingLevel
- java.lang.Object
-
- java.lang.Enum<MarkdomHeadingLevel>
-
- io.markdom.common.MarkdomHeadingLevel
-
- All Implemented Interfaces:
Serializable,Comparable<MarkdomHeadingLevel>
public enum MarkdomHeadingLevel extends Enum<MarkdomHeadingLevel>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MarkdomHeadingLevelfromOrdinal(int value)inttoOrdinal()static MarkdomHeadingLevelvalueOf(String name)Returns the enum constant of this type with the specified name.static MarkdomHeadingLevel[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LEVEL_1
public static final MarkdomHeadingLevel LEVEL_1
-
LEVEL_2
public static final MarkdomHeadingLevel LEVEL_2
-
LEVEL_3
public static final MarkdomHeadingLevel LEVEL_3
-
LEVEL_4
public static final MarkdomHeadingLevel LEVEL_4
-
LEVEL_5
public static final MarkdomHeadingLevel LEVEL_5
-
LEVEL_6
public static final MarkdomHeadingLevel LEVEL_6
-
-
Method Detail
-
values
public static MarkdomHeadingLevel[] 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 (MarkdomHeadingLevel c : MarkdomHeadingLevel.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MarkdomHeadingLevel 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
-
toOrdinal
public int toOrdinal()
-
fromOrdinal
public static MarkdomHeadingLevel fromOrdinal(int value) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
-