Enum Class MergeChunk.ConflictState

java.lang.Object
java.lang.Enum<MergeChunk.ConflictState>
org.eclipse.jgit.merge.MergeChunk.ConflictState
All Implemented Interfaces:
Serializable, Comparable<MergeChunk.ConflictState>, Constable
Enclosing class:
MergeChunk

public static enum MergeChunk.ConflictState extends Enum<MergeChunk.ConflictState>
A state telling whether a MergeChunk belongs to a conflict or not. The first chunk of a conflict is reported with a special state to be able to distinguish the border between two consecutive conflicts
  • Enum Constant Details

    • NO_CONFLICT

      public static final MergeChunk.ConflictState NO_CONFLICT
      This chunk does not belong to a conflict
    • FIRST_CONFLICTING_RANGE

      public static final MergeChunk.ConflictState FIRST_CONFLICTING_RANGE
      This chunk does belong to a conflict and is the first one of the conflicting chunks
    • NEXT_CONFLICTING_RANGE

      public static final MergeChunk.ConflictState NEXT_CONFLICTING_RANGE
      This chunk does belong to a conflict but is not the first one of the conflicting chunks. It's a subsequent one.
  • Constructor Details

    • ConflictState

      private ConflictState()
  • Method Details

    • values

      public static MergeChunk.ConflictState[] 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

      public static MergeChunk.ConflictState valueOf(String name)
      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 name
      NullPointerException - if the argument is null