Enum PartialConflictHandler.Resolution
- java.lang.Object
-
- java.lang.Enum<PartialConflictHandler.Resolution>
-
- org.apache.jackrabbit.oak.spi.commit.PartialConflictHandler.Resolution
-
- All Implemented Interfaces:
Serializable
,Comparable<PartialConflictHandler.Resolution>
- Enclosing interface:
- PartialConflictHandler
public static enum PartialConflictHandler.Resolution extends Enum<PartialConflictHandler.Resolution>
Resolutions for conflicts
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PartialConflictHandler.Resolution
valueOf(String name)
Returns the enum constant of this type with the specified name.static PartialConflictHandler.Resolution[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OURS
public static final PartialConflictHandler.Resolution OURS
Use the changes from the currentRoot
instance
-
THEIRS
public static final PartialConflictHandler.Resolution THEIRS
Use the changes from the underlying persistence store
-
MERGED
public static final PartialConflictHandler.Resolution MERGED
Indicated changes have been merged by thisConflictHandler
instance.
-
-
Method Detail
-
values
public static PartialConflictHandler.Resolution[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PartialConflictHandler.Resolution c : PartialConflictHandler.Resolution.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PartialConflictHandler.Resolution valueOf(String name)
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
-
-