Top Description Fields Constructors Methods
org.eclipse.jgit.api

public Class PullResult

extends Object
Class Inheritance
Imports
org.eclipse.jgit.transport.FetchResult

Encapsulates the result of a org.eclipse.jgit.api.PullCommand

Field Summary

Modifier and TypeField and Description
private final String
private final FetchResult
private final MergeResult
private final RebaseResult

Constructor Summary

AccessConstructor and Description
pack-priv
PullResult(FetchResult fetchResult, String fetchedFrom, MergeResult mergeResult)

pack-priv
PullResult(FetchResult fetchResult, String fetchedFrom, RebaseResult rebaseResult)

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the name of the remote configuration from which fetch was tried, or null
getFetchedFrom
()

Get name of the remote configuration from which fetch was tried

public FetchResult

Returns:

the fetch result, or null
getFetchResult
()

Get fetch result

public MergeResult

Returns:

the merge result, or null
getMergeResult
()

Get merge result

public RebaseResult

Returns:

the rebase result, or null
getRebaseResult
()

Get rebase result

public boolean

Returns:

whether the pull was successful
isSuccessful
()

Whether the pull was successful

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

fetchedFromback to summary
private final String fetchedFrom
fetchResultback to summary
private final FetchResult fetchResult
mergeResultback to summary
private final MergeResult mergeResult
rebaseResultback to summary
private final RebaseResult rebaseResult

Constructor Detail

PullResultback to summary
pack-priv PullResult(FetchResult fetchResult, String fetchedFrom, MergeResult mergeResult)
PullResultback to summary
pack-priv PullResult(FetchResult fetchResult, String fetchedFrom, RebaseResult rebaseResult)

Method Detail

getFetchedFromback to summary
public String getFetchedFrom()

Get name of the remote configuration from which fetch was tried

Returns:String

the name of the remote configuration from which fetch was tried, or null

getFetchResultback to summary
public FetchResult getFetchResult()

Get fetch result

Returns:FetchResult

the fetch result, or null

getMergeResultback to summary
public MergeResult getMergeResult()

Get merge result

Returns:MergeResult

the merge result, or null

getRebaseResultback to summary
public RebaseResult getRebaseResult()

Get rebase result

Returns:RebaseResult

the rebase result, or null

isSuccessfulback to summary
public boolean isSuccessful()

Whether the pull was successful

Returns:boolean

whether the pull was successful

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@SuppressWarnings:nls
@Override