@@ -109,14 +109,12 @@ private Stage2(final DbiBuilder<T> dbiBuilder) {
109109 * functionally identical.
110110 *
111111 * <p>This option may be slightly more performant than when using {@link
112- * Stage2#withNativeComparator()} which calls down to LMDB for ALL comparison
113- * operations.
112+ * Stage2#withNativeComparator()} which calls down to LMDB for ALL comparison operations.
114113 *
115114 * <p>If you do not intend to use {@link CursorIterable} then it doesn't matter whether you
116- * choose {@link Stage2#withNativeComparator()}, {@link
117- * Stage2#withDefaultComparator()} or {@link
118- * Stage2#withIteratorComparator(ComparatorFactory)} as these comparators will never
119- * be used.
115+ * choose {@link Stage2#withNativeComparator()}, {@link Stage2#withDefaultComparator()} or
116+ * {@link Stage2#withIteratorComparator(ComparatorFactory)} as these comparators will never be
117+ * used.
120118 *
121119 * @return The next builder stage.
122120 */
@@ -131,15 +129,13 @@ public Stage3<T> withDefaultComparator() {
131129 * keys using the same comparator that is used for insertion order into the db.
132130 *
133131 * <p>This option may be slightly less performant than when using {@link
134- * Stage2#withDefaultComparator()} as it needs to call down to LMDB to perform the
135- * comparisons, however it guarantees that {@link CursorIterable} key comparison matches LMDB
136- * key comparison.
132+ * Stage2#withDefaultComparator()} as it needs to call down to LMDB to perform the comparisons,
133+ * however it guarantees that {@link CursorIterable} key comparison matches LMDB key comparison.
137134 *
138135 * <p>If you do not intend to use {@link CursorIterable} then it doesn't matter whether you
139- * choose {@link Stage2#withNativeComparator()}, {@link
140- * Stage2#withDefaultComparator()} or {@link
141- * Stage2#withIteratorComparator(ComparatorFactory)} as these comparators will never
142- * be used.
136+ * choose {@link Stage2#withNativeComparator()}, {@link Stage2#withDefaultComparator()} or
137+ * {@link Stage2#withIteratorComparator(ComparatorFactory)} as these comparators will never be
138+ * used.
143139 *
144140 * @return The next builder stage.
145141 */
@@ -167,8 +163,7 @@ public Stage3<T> withNativeComparator() {
167163 * the {@link Dbi}. It must not return null.
168164 * @return The next builder stage.
169165 */
170- public Stage3 <T > withCallbackComparator (
171- final ComparatorFactory <T > comparatorFactory ) {
166+ public Stage3 <T > withCallbackComparator (final ComparatorFactory <T > comparatorFactory ) {
172167 this .comparatorFactory = Objects .requireNonNull (comparatorFactory );
173168 this .comparatorType = ComparatorType .CALLBACK ;
174169 return new Stage3 <>(this );
@@ -189,18 +184,16 @@ public Stage3<T> withCallbackComparator(
189184 * when using {@link CursorIterable}.
190185 *
191186 * <p>If you do not intend to use {@link CursorIterable} then it doesn't matter whether you
192- * choose {@link Stage2#withNativeComparator()}, {@link
193- * Stage2#withDefaultComparator()} or {@link
194- * Stage2#withIteratorComparator(ComparatorFactory)} as these comparators will never
195- * be used.
187+ * choose {@link Stage2#withNativeComparator()}, {@link Stage2#withDefaultComparator()} or
188+ * {@link Stage2#withIteratorComparator(ComparatorFactory)} as these comparators will never be
189+ * used.
196190 *
197191 * @param comparatorFactory The comparator to use with {@link CursorIterable}. {@link
198192 * ComparatorFactory#create(DbiFlagSet)} will be called once during the initialisation of
199193 * the {@link Dbi}. It must not return null.
200194 * @return The next builder stage.
201195 */
202- public Stage3 <T > withIteratorComparator (
203- final ComparatorFactory <T > comparatorFactory ) {
196+ public Stage3 <T > withIteratorComparator (final ComparatorFactory <T > comparatorFactory ) {
204197 this .comparatorFactory = Objects .requireNonNull (comparatorFactory );
205198 this .comparatorType = ComparatorType .ITERATOR ;
206199 return new Stage3 <>(this );
@@ -227,8 +220,8 @@ private Stage3(Stage2<T> stage2) {
227220 * Apply all the dbi flags supplied in dbiFlags.
228221 *
229222 * <p>Clears all flags currently set by previous calls to {@link
230- * Stage3#setDbiFlags(Collection)}, {@link Stage3#setDbiFlags(DbiFlags...)}
231- * or {@link Stage3#addDbiFlag(DbiFlags)}.
223+ * Stage3#setDbiFlags(Collection)}, {@link Stage3#setDbiFlags(DbiFlags...)} or {@link
224+ * Stage3#addDbiFlag(DbiFlags)}.
232225 *
233226 * @param dbiFlags to open the database with. A null {@link Collection} will just clear all set
234227 * flags. Null items are ignored.
@@ -246,8 +239,8 @@ public Stage3<T> setDbiFlags(final Collection<DbiFlags> dbiFlags) {
246239 * Apply all the dbi flags supplied in dbiFlags.
247240 *
248241 * <p>Clears all flags currently set by previous calls to {@link
249- * Stage3#setDbiFlags(Collection)}, {@link Stage3#setDbiFlags(DbiFlags...)}
250- * or {@link Stage3#addDbiFlag(DbiFlags)}.
242+ * Stage3#setDbiFlags(Collection)}, {@link Stage3#setDbiFlags(DbiFlags...)} or {@link
243+ * Stage3#addDbiFlag(DbiFlags)}.
251244 *
252245 * @param dbiFlags to open the database with. A null array will just clear all set flags. Null
253246 * items are ignored.
@@ -265,8 +258,8 @@ public Stage3<T> setDbiFlags(final DbiFlags... dbiFlags) {
265258 * Apply all the dbi flags supplied in dbiFlags.
266259 *
267260 * <p>Clears all flags currently set by previous calls to {@link
268- * Stage3#setDbiFlags(Collection)}, {@link Stage3#setDbiFlags(DbiFlags...)}
269- * or {@link Stage3#addDbiFlag(DbiFlags)}.
261+ * Stage3#setDbiFlags(Collection)}, {@link Stage3#setDbiFlags(DbiFlags...)} or {@link
262+ * Stage3#addDbiFlag(DbiFlags)}.
270263 *
271264 * @param dbiFlagSet to open the database with. A null value will just clear all set flags.
272265 * @return This builder instance.
@@ -281,8 +274,8 @@ public Stage3<T> setDbiFlags(final DbiFlagSet dbiFlagSet) {
281274
282275 /**
283276 * Adds a dbiFlag to those flags already added to this builder by {@link
284- * Stage3#setDbiFlags(DbiFlags...)}, {@link Stage3#setDbiFlags(Collection)}
285- * or {@link Stage3#addDbiFlag(DbiFlags)}.
277+ * Stage3#setDbiFlags(DbiFlags...)}, {@link Stage3#setDbiFlags(Collection)} or {@link
278+ * Stage3#addDbiFlag(DbiFlags)}.
286279 *
287280 * @param dbiFlag to add to any existing flags. A null value is a no-op.
288281 * @return this builder instance.
@@ -294,8 +287,8 @@ public Stage3<T> addDbiFlag(final DbiFlags dbiFlag) {
294287
295288 /**
296289 * Adds a dbiFlag to those flags already added to this builder by {@link
297- * Stage3#setDbiFlags(DbiFlags...)}, {@link Stage3#setDbiFlags(Collection)}
298- * or {@link Stage3#addDbiFlag(DbiFlags)}.
290+ * Stage3#setDbiFlags(DbiFlags...)}, {@link Stage3#setDbiFlags(Collection)} or {@link
291+ * Stage3#addDbiFlag(DbiFlags)}.
299292 *
300293 * @param dbiFlagSet to add to any existing flags. A null value is a no-op.
301294 * @return this builder instance.
@@ -310,8 +303,8 @@ public Stage3<T> addDbiFlags(final DbiFlagSet dbiFlagSet) {
310303 /**
311304 * Use the supplied transaction to open the {@link Dbi}.
312305 *
313- * <p>The caller MUST commit the transaction after calling {@link Stage3#open()}, in
314- * order to retain the <code>Dbi</code> in the <code>Env</code>.
306+ * <p>The caller MUST commit the transaction after calling {@link Stage3#open()}, in order to
307+ * retain the <code>Dbi</code> in the <code>Env</code>.
315308 *
316309 * <p>If you don't call this method to supply a {@link Txn}, a {@link Txn} will be opened for
317310 * the purpose of creating and opening the {@link Dbi}, then closed. Therefore, if you already
@@ -413,6 +406,7 @@ private enum ComparatorType {
413406
414407 /**
415408 * A factory for creating a {@link Comparator} from a {@link DbiFlagSet}
409+ *
416410 * @param <T> The type of buffer that will be compared by the created {@link Comparator}.
417411 */
418412 @ FunctionalInterface
@@ -422,8 +416,8 @@ public interface ComparatorFactory<T> {
422416 * Creates a comparator for the supplied {@link DbiFlagSet}. This will only be called once
423417 * during the initialisation of the {@link Dbi}.
424418 *
425- * @param dbiFlagSet The flags set on the DB that the returned {@link Comparator} will be used by.
426- * The flags in the set may impact how the returned {@link Comparator} should behave.
419+ * @param dbiFlagSet The flags set on the DB that the returned {@link Comparator} will be used
420+ * by. The flags in the set may impact how the returned {@link Comparator} should behave.
427421 * @return A {@link Comparator} applicable to the passed DB flags.
428422 */
429423 Comparator <T > create (final DbiFlagSet dbiFlagSet );
0 commit comments