public interface SCMHeadMixin extends Comparable<SCMHead>, Serializable
SCMHead subclasses. Do not implement this interface
directly, rather extend from SCMHead and implement the appropriate mixins such as
ChangeRequestSCMHead and TagSCMHead
Two SCMHeadMixin implementations are equal if and only if:
getName()SCMHeadMixin sub-interface, they both return the same values from all Java
Bean property getters declared on the sub-interface. Thus, for example ChangeRequestSCMHead
implementations are only considered equal if ChangeRequestSCMHead.getId() and
ChangeRequestSCMHead.getTarget() are also equalObject.hashCode() for a SCMHeadMixin implementation must be equal to the
String.hashCode() of getName()| Modifier and Type | Interface and Description |
|---|---|
static interface |
SCMHeadMixin.Equality |
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Returns the name.
|
SCMHeadOrigin |
getOrigin()
Returns the origin of the head.
|
compareTo@Exported @NonNull String getName()
@Exported @NonNull SCMHeadOrigin getOrigin()
SCMHeadOrigin.DEFAULT.
SCMHeadOrigin.DEFAULT or instances of SCMHeadOrigin.Fork.
SCMHeadOrigin.DEFAULT if there can only ever be one origin.Copyright © 2016–2019. All rights reserved.