Package jenkins.plugins.git
Class GitBranchSCMHead
- java.lang.Object
-
- jenkins.scm.api.SCMHead
-
- jenkins.plugins.git.GitBranchSCMHead
-
- All Implemented Interfaces:
Serializable,Comparable<jenkins.scm.api.SCMHead>,GitSCMHeadMixin,jenkins.scm.api.mixin.SCMHeadMixin
public class GitBranchSCMHead extends jenkins.scm.api.SCMHead implements GitSCMHeadMixin
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGitBranchSCMHead.SCMHeadMigrationImpl
-
Constructor Summary
Constructors Constructor Description GitBranchSCMHead(String name)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetRef()The ref, e.g.StringtoString()-
Methods inherited from class jenkins.scm.api.SCMHead
compareTo, equals, getAction, getAllActions, getName, getOrigin, getPronoun, hashCode
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Comparable
compareTo
-
-
-
-
Constructor Detail
-
GitBranchSCMHead
public GitBranchSCMHead(@NonNull String name)Constructor.- Parameters:
name- the name.
-
-
Method Detail
-
getRef
public final String getRef()
Description copied from interface:GitSCMHeadMixinThe ref, e.g. /refs/heads/master- Specified by:
getRefin interfaceGitSCMHeadMixin- Returns:
- the ref
-
toString
public String toString()
- Overrides:
toStringin classjenkins.scm.api.SCMHead
-
-