Skip to content
Permalink
Browse files

[JENKINS-43507] Grouping methods

  • Loading branch information...
stephenc committed May 2, 2017
1 parent e151115 commit 9c03e4ae524f488bd143c7a0f8fef812c845e2a0
Showing with 20 additions and 20 deletions.
  1. +20 −20 src/main/java/jenkins/scm/api/trait/SCMBuilder.java
@@ -88,23 +88,35 @@ public SCMBuilder(Class<S> clazz, @NonNull SCMHead head, @CheckForNull SCMRevisi
}

/**
* Returns the base class of {@link SCM} that will be produced by the {@link SCMBuilder}.
* Returns the {@link SCMHead} to produce the {@link SCM} for.
*
* @return the base class of {@link SCM} that will be produced by the {@link SCMBuilder}.
* @return the {@link SCMHead} to produce the {@link SCM} for.
*/
@NonNull
public final Class<S> scmClass() {
return clazz;
public final SCMHead head() {
return head;
}

/**
* Returns the {@link SCMHead} to produce the {@link SCM} for.
* Returns the {@link SCMRevision} to produce the {@link SCM} for or {@code null} to produce the {@link SCM} for
* the head revision.
*
* @return the {@link SCMHead} to produce the {@link SCM} for.
* @return the {@link SCMRevision} to produce the {@link SCM} for or {@code null} to produce the {@link SCM} for
* the head revision.
*/
@CheckForNull
public final SCMRevision revision() {
return revision;
}

/**
* Returns the base class of {@link SCM} that will be produced by the {@link SCMBuilder}.
*
* @return the base class of {@link SCM} that will be produced by the {@link SCMBuilder}.
*/
@NonNull
public final SCMHead head() {
return head;
public final Class<S> scmClass() {
return clazz;
}

/**
@@ -119,18 +131,6 @@ public final B withHead(@NonNull SCMHead head) {
return (B) this;
}

/**
* Returns the {@link SCMRevision} to produce the {@link SCM} for or {@code null} to produce the {@link SCM} for
* the head revision.
*
* @return the {@link SCMRevision} to produce the {@link SCM} for or {@code null} to produce the {@link SCM} for
* the head revision.
*/
@CheckForNull
public final SCMRevision revision() {
return revision;
}

/**
* Replace the {@link #revision()} with a new {@link SCMRevision}
*

0 comments on commit 9c03e4a

Please sign in to comment.
You can’t perform that action at this time.