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

public Class RefLeaseSpec

extends Object
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Imports
java.io.Serializable

Describes the expected value for a ref being pushed.
Since
4.7

Field Summary

Modifier and TypeField and Description
private final String
expected

Local commitish to get expected value from.

private final String
ref

Name of the ref whose value we want to check.

private static final long

Constructor Summary

AccessConstructor and Description
public
RefLeaseSpec(String
ref being pushed
ref
,
String
the expected value of the ref
expected
)

Constructor for RefLeaseSpec.

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

expected ref value.
getExpected
()

Get the expected value of the ref, in the form of a local committish

public String

Returns:

name of ref to check.
getRef
()

Get the ref to protect.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

expectedback to summary
private final String expected

Local commitish to get expected value from.

refback to summary
private final String ref

Name of the ref whose value we want to check.

serialVersionUIDback to summary
private static final long serialVersionUID

Constructor Detail

RefLeaseSpecback to summary
public RefLeaseSpec(String ref, String expected)

Constructor for RefLeaseSpec.

Parameters
ref:String

ref being pushed

expected:String

the expected value of the ref

Method Detail

getExpectedback to summary
public String getExpected()

Get the expected value of the ref, in the form of a local committish

Returns:String

expected ref value.

getRefback to summary
public String getRef()

Get the ref to protect.

Returns:String

name of ref to check.

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
@Override