Class GitRefSCMHead

java.lang.Object
jenkins.scm.api.SCMHead
jenkins.plugins.git.GitRefSCMHead
All Implemented Interfaces:
Serializable, Comparable<jenkins.scm.api.SCMHead>, GitSCMHeadMixin, jenkins.scm.api.mixin.SCMHeadMixin

public class GitRefSCMHead extends jenkins.scm.api.SCMHead implements GitSCMHeadMixin
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class jenkins.scm.api.SCMHead

    jenkins.scm.api.SCMHead.HeadByItem

    Nested classes/interfaces inherited from interface jenkins.scm.api.mixin.SCMHeadMixin

    jenkins.scm.api.mixin.SCMHeadMixin.Equality
  • Field Summary

    Fields inherited from class jenkins.scm.api.SCMHead

    PRONOUN
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor where ref and name are the same.
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    The ref, e.g.
     

    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

    Methods inherited from interface jenkins.scm.api.mixin.SCMHeadMixin

    getName, getOrigin
  • Constructor Details

    • GitRefSCMHead

      public GitRefSCMHead(@NonNull String name, @NonNull String ref)
      Constructor.
      Parameters:
      name - the name of the ref.
      ref - the ref.
    • GitRefSCMHead

      public GitRefSCMHead(@NonNull String name)
      Constructor where ref and name are the same.
      Parameters:
      name - the name (and the ref).
  • Method Details

    • getRef

      public String getRef()
      Description copied from interface: GitSCMHeadMixin
      The ref, e.g. /refs/heads/master
      Specified by:
      getRef in interface GitSCMHeadMixin
      Returns:
      the ref
    • toString

      public String toString()
      Overrides:
      toString in class jenkins.scm.api.SCMHead