Skip to content

Commit

Permalink
[JENKINS-43507] Grouping methods
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenc committed May 4, 2017
1 parent e151115 commit 9c03e4a
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions src/main/java/jenkins/scm/api/trait/SCMBuilder.java
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -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 @NonNull
public final Class<S> scmClass() { public final SCMHead head() {
return clazz; 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 @NonNull
public final SCMHead head() { public final Class<S> scmClass() {
return head; return clazz;
} }


/** /**
Expand All @@ -119,18 +131,6 @@ public final B withHead(@NonNull SCMHead head) {
return (B) this; 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} * Replace the {@link #revision()} with a new {@link SCMRevision}
* *
Expand Down

0 comments on commit 9c03e4a

Please sign in to comment.