public enum MultiDecoration extends java.lang.Enum<MultiDecoration>
| Enum Constant and Description |
|---|
Prefix
Prefix decoration.
|
Separator
Separator decoration.
|
Suffix
Suffix decoration.
|
| Modifier and Type | Field and Description |
|---|---|
char |
marker
The marker for the decoration type.
|
java.lang.String |
markerAsText
The marker for the decoration type, as text.
|
static Indexable<MultiDecoration> |
VALUES
The values of this enum.
|
| Modifier and Type | Method and Description |
|---|---|
static MultiDecoration |
fromInternal(int internalValue)
Get the DecoType enum associated with the given internal value.
|
static MultiDecoration |
fromInternal(int internalValue,
MultiDecoration defaultValue)
Get the DecoType enum associated with the given internal value.
|
static MultiDecoration |
fromMarker(char marker)
Resolve the decoration type from its marker.
|
static MultiDecoration |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MultiDecoration[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MultiDecoration Prefix
The prefix decoration is inserted before the repeated multiple insertion if there is at least one insertion.
public static final MultiDecoration Separator
The separator is inserted between multiple insertions. So it requires at least two insertions to become visible.
public static final MultiDecoration Suffix
The suffix decoration is inserted after the repeated multiple insertion if there is at least one insertion.
public final char marker
@NotNull public final java.lang.String markerAsText
@NotNull public static final Indexable<MultiDecoration> VALUES
values() because it does not require internal array copying.public static MultiDecoration[] values()
for (MultiDecoration c : MultiDecoration.values()) System.out.println(c);
public static MultiDecoration valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null@Nullable public static MultiDecoration fromInternal(int internalValue)
internalValue - internal valuenull if there is none@NotNull public static MultiDecoration fromInternal(int internalValue, @NotNull MultiDecoration defaultValue)
internalValue - internal valuedefaultValue - default valuedefaultValue if there is none@Nullable public static MultiDecoration fromMarker(char marker)
marker - given markernull