|
@@ -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} |
|
|
* |
|
|