public final enum

DiffSegmentType

extends Enum<E extends Enum<E>>
java.lang.Object
   ↳ java.lang.Enum<E extends java.lang.Enum<E>>
     ↳ com.atlassian.bitbucket.content.DiffSegmentType

Class Overview

Enumerates the different segment types available in diff output.

Summary

Enum Values
DiffSegmentType  ADDED  Indicates the lines in the segment were added in the destination file. 
DiffSegmentType  CONTEXT  Indicates the lines in the segment are context, existing unchanged in both the source and destination. 
DiffSegmentType  REMOVED  Indicates the lines in the segment were removed in the destination file. 
Public Methods
static DiffSegmentType fromId(int id)
int getId()
boolean isInDestination()
boolean isInSource()
static DiffSegmentType valueOf(String name)
final static DiffSegmentType[] values()
[Expand]
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum Values

public static final DiffSegmentType ADDED

Indicates the lines in the segment were added in the destination file.

public static final DiffSegmentType CONTEXT

Indicates the lines in the segment are context, existing unchanged in both the source and destination.

public static final DiffSegmentType REMOVED

Indicates the lines in the segment were removed in the destination file.

Public Methods

public static DiffSegmentType fromId (int id)

public int getId ()

public boolean isInDestination ()

public boolean isInSource ()

public static DiffSegmentType valueOf (String name)

public static final DiffSegmentType[] values ()