Enum ConflictResolution.ConflictResolutionType
- java.lang.Object
-
- java.lang.Enum<ConflictResolution.ConflictResolutionType>
-
- com.mongodb.stitch.core.services.mongodb.remote.sync.ConflictResolution.ConflictResolutionType
-
- All Implemented Interfaces:
Serializable
,Comparable<ConflictResolution.ConflictResolutionType>
,java.lang.constant.Constable
- Enclosing class:
- ConflictResolution
public static enum ConflictResolution.ConflictResolutionType extends Enum<ConflictResolution.ConflictResolutionType>
The different ways of resolving a conflict.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FROM_LOCAL
FROM_REMOTE
WITH_DOCUMENT
-
Method Summary
Modifier and Type Method Description static ConflictResolution.ConflictResolutionType
valueOf(String name)
Returns the enum constant of this type with the specified name.static ConflictResolution.ConflictResolutionType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
WITH_DOCUMENT
public static final ConflictResolution.ConflictResolutionType WITH_DOCUMENT
-
FROM_LOCAL
public static final ConflictResolution.ConflictResolutionType FROM_LOCAL
-
FROM_REMOTE
public static final ConflictResolution.ConflictResolutionType FROM_REMOTE
-
-
Method Detail
-
values
public static ConflictResolution.ConflictResolutionType[] 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
public static ConflictResolution.ConflictResolutionType 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
-
-