public abstract class ChangeRequestSCMRevision<H extends SCMHead & ChangeRequestSCMHead> extends SCMRevision
SCMRevision of a ChangeRequestSCMHead.| Modifier | Constructor and Description |
|---|---|
protected |
ChangeRequestSCMRevision(H head,
SCMRevision target)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract int |
_hashCode()
Compute the
hashCode() excluding getTarget(). |
boolean |
equals(Object o) |
abstract boolean |
equivalent(ChangeRequestSCMRevision<?> revision)
Performs an equality comparison as for
equals(Object) but excludes the getTarget()
SCMRevision from the comparison (though the ChangeRequestSCMHead.getTarget() will be included
as part of the SCMRevision.getHead() comparison. |
SCMRevision |
getTarget()
Returns the revision of the
ChangeRequestSCMHead.getTarget() that this ChangeRequestSCMHead is
associated with. |
int |
hashCode() |
boolean |
isMerge()
Is this a
ChangeRequestSCMRevision that will be merged on top of getTarget()? |
getHead, isDeterministic, toStringprotected ChangeRequestSCMRevision(@NonNull
H head,
@NonNull
SCMRevision target)
head - the SCMHead that the SCMRevision belongs to.target - the SCMRevision of the ChangeRequestSCMHead.getTarget().@Exported @NonNull public final SCMRevision getTarget()
ChangeRequestSCMHead.getTarget() that this ChangeRequestSCMHead is
associated with.@Exported public final boolean isMerge()
ChangeRequestSCMRevision that will be merged on top of getTarget()?true if the effective revision is the result of merging onto the getTarget()
revision false if the effective revision ignores the getTarget().ChangeRequestSCMHead2public abstract boolean equivalent(ChangeRequestSCMRevision<?> revision)
equals(Object) but excludes the getTarget()
SCMRevision from the comparison (though the ChangeRequestSCMHead.getTarget() will be included
as part of the SCMRevision.getHead() comparison.revision - the revision to compare with.true if equal to supplied revision (ignoring differences in getTarget())protected abstract int _hashCode()
hashCode() excluding getTarget().public final boolean equals(Object o)
equals in class SCMRevisionpublic final int hashCode()
hashCode in class SCMRevisionCopyright © 2016–2019. All rights reserved.