Enum Class Links.MergeMode

java.lang.Object
java.lang.Enum<Links.MergeMode>
org.springframework.hateoas.Links.MergeMode
All Implemented Interfaces:
Serializable, Comparable<Links.MergeMode>, Constable
Enclosing class:
Links

public static enum Links.MergeMode extends Enum<Links.MergeMode>
The mode how to merge two Links instances.
Author:
Oliver Drotbohm
  • Enum Constant Details

    • SKIP_BY_EQUALITY

      public static final Links.MergeMode SKIP_BY_EQUALITY
      Skips to add the same links on merge. Multiple links with the same link relation might appear.
    • SKIP_BY_REL

      public static final Links.MergeMode 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

      public static final Links.MergeMode REPLACE_BY_REL
      Replaces existing links with the same link relation.
  • Method Details

    • values

      public static Links.MergeMode[] 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

      public static Links.MergeMode valueOf(String name)
      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 name
      NullPointerException - if the argument is null