Class ResolveRefRequest
java.lang.Object
com.atlassian.bitbucket.repository.ResolveRefRequest
Describes a ref to
resolve
.
If it is known whether a requested ref is a branch or a tag, the caller is encouraged to specify the
type
to allow the SCM to optimize resolving the ref. If the ref type is unknown, the
type should be left null
.
- Since:
- 4.6
- See Also:
-
Nested Class Summary
-
Method Summary
-
Method Details
-
equals
-
getRefId
Retrieves the ID to resolve, which may beempty()
to resolve the default branch. If the ID isempty()
, anytype
specified is ignored.- Returns:
- the ID to resolve, or
empty()
to resolve the repository's default branch
-
getRepository
Retrieves the repository to resolve the ref in.- Returns:
- the repository to resolve the ref in
-
getType
Retrieves the type of ref to resolve, if it's known in advance. Specifying the type explicitly can allow the implementation to search IDs more efficiently, and can also prevent ambiguities when refs of multiple types have the same ID.If
getRefId()
isempty()
, this type hint is ignored and the default branch will be resolved. -
hashCode
public int hashCode()
-