public final enum

DiffFileType

extends Enum<E extends Enum<E>>
java.lang.Object
   ↳ java.lang.Enum<E extends java.lang.Enum<E>>
     ↳ com.atlassian.stash.content.DiffFileType

Class Overview

An enumeration of file types in a diff presented by Stash.

Summary

Enum Values
DiffFileType  FROM  The source ('from') file of the diff. 
DiffFileType  TO  The destination ('to') file of the diff,  
Public Methods
@Nonnull static DiffFileType forSegmentType(DiffSegmentType segmentType)
Returns the default file type for a given segmentType.
@Nonnull static DiffFileType fromId(int id)
int getId()
static DiffFileType valueOf(String name)
final static DiffFileType[] values()
[Expand]
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum Values

public static final DiffFileType FROM

The source ('from') file of the diff.

public static final DiffFileType TO

The destination ('to') file of the diff,

Public Methods

@Nonnull public static DiffFileType forSegmentType (DiffSegmentType segmentType)

Returns the default file type for a given segmentType.

Parameters
segmentType segment type to match
Returns
  • the default matching file type for the provided segment type
Throws
IllegalArgumentException if there is no file type currently associated with segmentType.

@Nonnull public static DiffFileType fromId (int id)

public int getId ()

public static DiffFileType valueOf (String name)

public static final DiffFileType[] values ()