Package org.syncany.database
Enum VectorClock.VectorClockComparison
- java.lang.Object
-
- java.lang.Enum<VectorClock.VectorClockComparison>
-
- org.syncany.database.VectorClock.VectorClockComparison
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<VectorClock.VectorClockComparison>
- Enclosing class:
- VectorClock
public static enum VectorClock.VectorClockComparison extends java.lang.Enum<VectorClock.VectorClockComparison>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EQUAL
GREATER
SIMULTANEOUS
SMALLER
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static VectorClock.VectorClockComparison
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static VectorClock.VectorClockComparison[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SMALLER
public static final VectorClock.VectorClockComparison SMALLER
-
GREATER
public static final VectorClock.VectorClockComparison GREATER
-
EQUAL
public static final VectorClock.VectorClockComparison EQUAL
-
SIMULTANEOUS
public static final VectorClock.VectorClockComparison SIMULTANEOUS
-
-
Method Detail
-
values
public static VectorClock.VectorClockComparison[] 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 (VectorClock.VectorClockComparison c : VectorClock.VectorClockComparison.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static VectorClock.VectorClockComparison valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-