Class BitbucketClientRef

    • Constructor Detail

      • BitbucketClientRef

        public BitbucketClientRef​(JsonObject jsonObject)
        Initializes the object.
        Parameters:
        jsonObject - a JSON object
      • BitbucketClientRef

        public BitbucketClientRef​(JsonObject jsonObject,
                                  BitbucketClient bitbucketClient)
        Initializes the object with a Bitbucket API client.
        Parameters:
        jsonObject - a JSON object
        bitbucketClient - a Bitbucket API client
    • Method Detail

      • getName

        public final String getName()
        Returns the name of the commit reference.
        Specified by:
        getName in interface BitbucketRef
        Returns:
        the name of the commit reference
      • getTarget

        public final BitbucketCommit getTarget()
        Description copied from interface: BitbucketRef
        Returns the target of the commit reference.
        Specified by:
        getTarget in interface BitbucketRef
        Returns:
        the target of the commit reference