Package com.couchbase.lite.internal.core
Enum C4ReplicatorMode
- java.lang.Object
-
- java.lang.Enum<C4ReplicatorMode>
-
- com.couchbase.lite.internal.core.C4ReplicatorMode
-
- All Implemented Interfaces:
Serializable
,Comparable<C4ReplicatorMode>
public enum C4ReplicatorMode extends Enum<C4ReplicatorMode>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description C4_CONTINUOUS
C4_DISABLED
C4_ONE_SHOT
C4_PASSIVE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getVal()
static C4ReplicatorMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static C4ReplicatorMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
C4_DISABLED
public static final C4ReplicatorMode C4_DISABLED
-
C4_PASSIVE
public static final C4ReplicatorMode C4_PASSIVE
-
C4_ONE_SHOT
public static final C4ReplicatorMode C4_ONE_SHOT
-
C4_CONTINUOUS
public static final C4ReplicatorMode C4_CONTINUOUS
-
-
Method Detail
-
values
public static C4ReplicatorMode[] 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 (C4ReplicatorMode c : C4ReplicatorMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static C4ReplicatorMode 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
-
getVal
public int getVal()
-
-