Enum Class MatchingStrategy
- All Implemented Interfaces:
Serializable
,Comparable<MatchingStrategy>
,Constable
The strategy used for matching of objects that don't have explicit correspondence set.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionMatching by the object name.Matching by the UUID.Matching by the UUID, and if not found, then by the object name. -
Method Summary
Modifier and TypeMethodDescriptiongetTitle()
Returns the strategy title.boolean
Returns whether this strategy involves names.boolean
Returns whether this strategy involves UUIDs.static MatchingStrategy
Returns the enum constant of this class with the specified name.static MatchingStrategy[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UUID
Matching by the UUID. -
NAME
Matching by the object name. -
UUID_THEN_NAME
Matching by the UUID, and if not found, then by the object name.
-
-
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
-
involvesName
public boolean involvesName()Returns whether this strategy involves names.- Returns:
true
if this strategy involves names
-
involvesUuid
public boolean involvesUuid()Returns whether this strategy involves UUIDs.- Returns:
true
if this strategy involves UUIDs
-
getTitle
Returns the strategy title.- Returns:
- the title, never
null
-