Package net.kyori.adventure.text.format
Enum Style.Merge.Strategy
- All Implemented Interfaces:
Serializable
,Comparable<Style.Merge.Strategy>
- Enclosing class:
- Style.Merge
public static enum Style.Merge.Strategy extends Enum<Style.Merge.Strategy>
A merge strategy.
- Since:
- 4.0.0
-
Enum Constant Summary
Enum Constants Enum Constant Description ALWAYS
Always merge onto target.IF_ABSENT_ON_TARGET
Merge onto target when not already set on target.NEVER
Never merges onto target. -
Method Summary
Modifier and Type Method Description static Style.Merge.Strategy
valueOf(String name)
Returns the enum constant of this type with the specified name.static Style.Merge.Strategy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ALWAYS
Always merge onto target.- Since:
- 4.0.0
-
NEVER
Never merges onto target.- Since:
- 4.0.0
-
IF_ABSENT_ON_TARGET
Merge onto target when not already set on target.- Since:
- 4.0.0
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-