Package jenkins.scm.api.mixin
Interface SCMHeadMixin
- All Superinterfaces:
- Comparable<SCMHead>,- Serializable
- All Known Subinterfaces:
- ChangeRequestSCMHead,- ChangeRequestSCMHead2
- All Known Implementing Classes:
- SCMHead
Interface to allow declaring mixin interfaces for 
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:
 
- They both are the same class
- They both have the same getName()
- For each implemented SCMHeadMixinsub-interface, they both return the same values from all Java Bean property getters declared on the sub-interface. Thus, for exampleChangeRequestSCMHeadimplementations are only considered equal ifChangeRequestSCMHead.getId()andChangeRequestSCMHead.getTarget()are also equal
Object.hashCode() for a SCMHeadMixin implementation must be equal to the
 String.hashCode() of getName()- Since:
- 2.0
- 
Nested Class SummaryNested Classes
- 
Method SummaryMethods inherited from interface java.lang.ComparablecompareTo
- 
Method Details- 
getNameReturns the name.- Returns:
- the name.
 
- 
getOriginReturns the origin of the head.- 
 For centralized version control systems such as Subversion, CVS, etc the return value will always be
 SCMHeadOrigin.DEFAULT.
- For distributed version control systems such as Git, Mercurial etc the return value may have other values.
- 
 For centralized distributed version control systems such as GitHub, Bitbucket, etc the return values may
 be restricted to SCMHeadOrigin.DEFAULTor instances ofSCMHeadOrigin.Fork.
 - Returns:
- the origin of the head or SCMHeadOrigin.DEFAULTif there can only ever be one origin.
- Since:
- 2.2.0
 
- 
 For centralized version control systems such as Subversion, CVS, etc the return value will always be
 
 
-