Enum Class DiffSegmentType

java.lang.Object
java.lang.Enum<DiffSegmentType>
com.atlassian.bitbucket.content.DiffSegmentType
All Implemented Interfaces:
Serializable, Comparable<DiffSegmentType>, Constable

public enum DiffSegmentType extends Enum<DiffSegmentType>
Enumerates the different segment types available in diff output.
  • Enum Constant Details

    • ADDED

      public static final DiffSegmentType ADDED
      Indicates the lines in the segment were added in the destination file.
    • CONTEXT

      public static final DiffSegmentType CONTEXT
      Indicates the lines in the segment are context, existing unchanged in both the source and destination.
    • REMOVED

      public static final DiffSegmentType REMOVED
      Indicates the lines in the segment were removed in the destination file.
  • Method Details

    • values

      public static DiffSegmentType[] 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 DiffSegmentType 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
    • fromId

      public static DiffSegmentType fromId(int id)
    • getId

      public int getId()
    • isInDestination

      public boolean isInDestination()
    • isInSource

      public boolean isInSource()