Class SimpleRefChange
java.lang.Object
com.atlassian.bitbucket.repository.SimpleMinimalRefChange
com.atlassian.bitbucket.repository.SimpleRefChange
- All Implemented Interfaces:
MinimalRefChange
,RefChange
- Direct Known Subclasses:
SimpleDetailedRefChange
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
Nested classes/interfaces inherited from class com.atlassian.bitbucket.repository.SimpleMinimalRefChange
SimpleMinimalRefChange.AbstractMinimalRefChangeBuilder<B extends SimpleMinimalRefChange.AbstractMinimalRefChangeBuilder<B,
R>, R extends MinimalRefChange> -
Field Summary
Fields inherited from interface com.atlassian.bitbucket.repository.RefChange
MAX_HASH_LENGTH
-
Constructor Summary
ModifierConstructorDescriptionprotected
SimpleRefChange
(SimpleRefChange.AbstractBuilder<?> builder) -
Method Summary
-
Constructor Details
-
SimpleRefChange
- Parameters:
builder
- builder to construct the ref change from- Since:
- 5.10
-
-
Method Details
-
getFromHash
- Specified by:
getFromHash
in interfaceRefChange
- Returns:
- the previous hash
-
getRef
- Specified by:
getRef
in interfaceMinimalRefChange
- Specified by:
getRef
in interfaceRefChange
- Overrides:
getRef
in classSimpleMinimalRefChange
- Returns:
- the ref that has been updated
-
getToHash
-
getType
- Specified by:
getType
in interfaceMinimalRefChange
- Specified by:
getType
in interfaceRefChange
- Overrides:
getType
in classSimpleMinimalRefChange
- Returns:
- the type of ref change
-
equals
- Overrides:
equals
in classSimpleMinimalRefChange
-
hashCode
public int hashCode()- Overrides:
hashCode
in classSimpleMinimalRefChange
-
toString
- Overrides:
toString
in classSimpleMinimalRefChange
-