Package org.vx68k.bitbucket.webhook
Class BitbucketPush.Change
- java.lang.Object
-
- org.vx68k.bitbucket.api.client.BitbucketClientObject
-
- org.vx68k.bitbucket.webhook.BitbucketPush.Change
-
- Enclosing class:
- BitbucketPush
public static class BitbucketPush.Change extends BitbucketClientObject
Change in a push description.
-
-
Constructor Summary
Constructors Constructor Description Change(JsonObject object)
Constructs this change with a JSON change object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<BitbucketCommit>
getCommits()
Returns the commits included in this change.BitbucketBranch
getNew()
Returns the new branch after this change.BitbucketBranch
getOld()
Returns the old branch before this change.boolean
isClosed()
Returnstrue
if this change closed a branch.boolean
isCreated()
Returnstrue
if this change created a branch.boolean
isForced()
Returnstrue
if this change was forced.boolean
isTruncated()
Returnstrue
if this change was truncated.-
Methods inherited from class org.vx68k.bitbucket.api.client.BitbucketClientObject
equals, getBitbucketClient, getJsonObject, getLink, getType, hashCode, setBitbucketClient, toString
-
-
-
-
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()
Returnstrue
if this change created a branch.- Returns:
true
if created
-
isClosed
public final boolean isClosed()
Returnstrue
if this change closed a branch.- Returns:
true
if closed
-
isForced
public final boolean isForced()
Returnstrue
if this change was forced.- Returns:
true
if forced
-
isTruncated
public final boolean isTruncated()
Returnstrue
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
-
-