Class RemoteRef


  • public final class RemoteRef
    extends Object
    Remote reference definition
    Author:
    Brian Wyka
    • 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 reference
        defaultRef - the default ref to use if none provided
        Returns:
        the remote reference
      • 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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object