Class BitbucketPush.Change

    • Constructor Detail

      • Change

        public Change​(JsonObject object)
        Constructs this change with a JSON change object.
        Parameters:
        object - JSON change object
    • Method Detail

      • isCreated

        public final boolean isCreated()
        Returns true if this change created a branch.
        Returns:
        true if created
      • isClosed

        public final boolean isClosed()
        Returns true if this change closed a branch.
        Returns:
        true if closed
      • isForced

        public final boolean isForced()
        Returns true if this change was forced.
        Returns:
        true if forced
      • isTruncated

        public final boolean isTruncated()
        Returns true if this change was truncated.
        Returns:
        true if truncated
      • getOld

        public final BitbucketBranch getOld()
        Returns the old branch before this change.
        Returns:
        the old branch
      • getNew

        public final BitbucketBranch getNew()
        Returns the new branch after this change.
        Returns:
        the new branch
      • getCommits

        public final List<BitbucketCommit> getCommits()
        Returns the commits included in this change.
        Returns:
        the commits