public interface

ConflictChange

com.atlassian.bitbucket.content.ConflictChange

Class Overview

A minimal subset of a Change describing how a path was changed on one side of a Conflict. For some types of changes, a source path will also be included.

Note: The path in the repository for which the Conflict happened may be either the getPath() or the getSrcPath().

Summary

Public Methods
@Nonnull Path getPath()
Retrieves the path that was changed or, for copies and moves/renames, the path after the change was applied.
@Nullable Path getSrcPath()
For certain types of changes, retrieves the path prior to the change.
@Nonnull ChangeType getType()
Retrieves the type of change that was made on this side of the conflict.

Public Methods

@Nonnull public Path getPath ()

Retrieves the path that was changed or, for copies and moves/renames, the path after the change was applied.

Returns
  • the changed path or, for moves/renames, the path after the change

@Nullable public Path getSrcPath ()

For certain types of changes, retrieves the path prior to the change.

Copies and moves/renames should attempt to provide a source path. However, due to the vagaries of source control, it is possible they will be unable to. Callers should not assume this path will be provided even for copies, moves or renames.

Returns
  • the path prior to the change

@Nonnull public ChangeType getType ()

Retrieves the type of change that was made on this side of the conflict.

Returns
  • the change type