Package com.optum.sourcehawk.core.data
Class RemoteRef
- java.lang.Object
-
- com.optum.sourcehawk.core.data.RemoteRef
-
public final class RemoteRef extends Object
Remote reference definition- Author:
- Brian Wyka
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRemoteRef.RemoteRefBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RemoteRef.RemoteRefBuilderbuilder()booleanequals(Object o)@NonNull StringgetNamespace()The remote namespace, such as Github owner / organization, or Bitbucket user / project@NonNull StringgetRef()The reference, such as tag, branch, commit ID@NonNull StringgetRepository()The remote repository nameinthashCode()static RemoteRefparse(String rawRemoteRef, String defaultRef)Create the remote ref from the type and raw referenceStringtoString()
-
-
-
Method Detail
-
parse
public static RemoteRef parse(String rawRemoteRef, String defaultRef)
Create the remote ref from the type and raw reference- Parameters:
rawRemoteRef- the raw remote referencedefaultRef- the default ref to use if none provided- Returns:
- the remote reference
-
builder
public static RemoteRef.RemoteRefBuilder builder()
-
getNamespace
@NonNull public @NonNull String getNamespace()
The remote namespace, such as Github owner / organization, or Bitbucket user / project
-
getRepository
@NonNull public @NonNull String getRepository()
The remote repository name
-
getRef
@NonNull public @NonNull String getRef()
The reference, such as tag, branch, commit ID
-
-