Package org.springframework.hateoas
Enum Class Links.MergeMode
- All Implemented Interfaces:
Serializable
,Comparable<Links.MergeMode>
,Constable
- Enclosing class:
- Links
The mode how to merge two
Links
instances.- Author:
- Oliver Drotbohm
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionReplaces existing links with the same link relation.Skips to add the same links on merge.Skips to add links with the same link relation, i.e. existing ones with the same relation are preferred. -
Method Summary
Modifier and TypeMethodDescriptionstatic Links.MergeMode
Returns the enum constant of this class with the specified name.static Links.MergeMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SKIP_BY_EQUALITY
Skips to add the same links on merge. Multiple links with the same link relation might appear. -
SKIP_BY_REL
Skips to add links with the same link relation, i.e. existing ones with the same relation are preferred. -
REPLACE_BY_REL
Replaces existing links with the same link relation.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-