55import javax .annotation .CheckForNull ;
66import javax .annotation .Nonnull ;
77
8+ // TODO: Auto-generated Javadoc
89/**
910 * An abstract data object builder/updater.
10- *
11+ *
1112 * This class can be use to make a Builder that supports both batch and single property changes.
1213 * <p>
1314 * Batching looks like this:
1415 * </p>
15- *
16+ *
1617 * <pre>
1718 * update().someName(value).otherName(value).done()
1819 * </pre>
1920 * <p>
2021 * Single changes look like this:
2122 * </p>
22- *
23+ *
2324 * <pre>
2425 * set().someName(value);
2526 * set().otherName(value);
3233 * If {@link S} is not the same as {@link R}, {@link #with(String, Object)} will batch together multiple changes and let
3334 * the user call {@link #done()} when they are ready.
3435 *
35- * @param <R>
36- * Final return type built by this builder returned when {@link #done()}} is called.
37- * @param <S>
38- * Intermediate return type for this builder returned by calls to {@link #with(String, Object)}. If {@link S}
39- * the same as {@link R}, this builder will commit changes after each call to {@link #with(String, Object)}.
40- *
4136 * @author Liam Newman
37+ * @param <R> Final return type built by this builder returned when {@link #done()}} is called.
38+ * @param <S> Intermediate return type for this builder returned by calls to {@link #with(String, Object)}. If {@link S}
39+ * the same as {@link R}, this builder will commit changes after each call to {@link #with(String, Object)}.
4240 */
4341abstract class AbstractBuilder <R , S > extends GitHubInteractiveObject {
4442
@@ -50,28 +48,26 @@ abstract class AbstractBuilder<R, S> extends GitHubInteractiveObject {
5048 @ CheckForNull
5149 private final R baseInstance ;
5250
51+ /** The requester. */
5352 @ Nonnull
5453 protected final Requester requester ;
5554
5655 // TODO: Not sure how update-in-place behavior should be controlled
5756 // However, it certainly can be controlled dynamically down to the instance level or inherited for all children of
5857 // some
58+ /** The update in place. */
5959 // connection.
6060 protected boolean updateInPlace ;
6161
6262 /**
6363 * Creates a builder.
6464 *
65- * @param root
66- * the GitHub instance to connect to.
67- * @param intermediateReturnType
68- * the intermediate return type of type {@link S} returned by calls to {@link #with(String, Object)}.
65+ * @param finalReturnType the final return type for built by this builder returned when {@link #done()}} is called.
66+ * @param intermediateReturnType the intermediate return type of type {@link S} returned by calls to {@link #with(String, Object)}.
6967 * Must either be equal to {@code builtReturnType} or this instance must be castable to this class. If
7068 * not, the constructor will throw {@link IllegalArgumentException}.
71- * @param finalReturnType
72- * the final return type for built by this builder returned when {@link #done()}} is called.
73- * @param baseInstance
74- * optional instance on which to base this builder.
69+ * @param root the GitHub instance to connect to.
70+ * @param baseInstance optional instance on which to base this builder.
7571 */
7672 protected AbstractBuilder (@ Nonnull Class <R > finalReturnType ,
7773 @ Nonnull Class <S > intermediateReturnType ,
0 commit comments