2121/**
2222 * API Class. Create an instance of this using {@code #builder()} to use the API.
2323 */
24- public final class CodeBottle {
24+ public final class CodeBottleAPI {
2525 private final Map <String , Language > languageCache = new ConcurrentHashMap <>();
2626 private final Map <String , Category > categoryCache = new ConcurrentHashMap <>();
2727 private final Map <String , Snippet > snippetCache = new ConcurrentHashMap <>();
@@ -34,7 +34,7 @@ public final class CodeBottle {
3434 */
3535 public final CompletableFuture <Void > lazyLoading = CompletableFuture .allOf (requestLanguages (), requestCategories ());
3636
37- private CodeBottle (@ Nullable String token , OkHttpClient httpClient ) {
37+ private CodeBottleAPI (@ Nullable String token , OkHttpClient httpClient ) {
3838 this .token = token ;
3939 this .httpClient = httpClient ;
4040 }
@@ -43,9 +43,9 @@ private CodeBottle(@Nullable String token, OkHttpClient httpClient) {
4343 * Waits for {@linkplain #lazyLoading lazy loading} to finish using {@link CompletableFuture#join()}.
4444 * This method is intended to be used for API chaining, otherwise it is recommended to wait for {@link #lazyLoading} yourself.
4545 *
46- * @return this {@link CodeBottle } instance.
46+ * @return this {@link CodeBottleAPI } instance.
4747 */
48- public CodeBottle waitForLazyLoading () {
48+ public CodeBottleAPI waitForLazyLoading () {
4949 lazyLoading .join ();
5050
5151 return this ;
@@ -359,8 +359,8 @@ public void setHttpClient(OkHttpClient httpClient) {
359359 this .httpClient = httpClient ;
360360 }
361361
362- public CodeBottle build () {
363- return new CodeBottle (token , httpClient );
362+ public CodeBottleAPI build () {
363+ return new CodeBottleAPI (token , httpClient );
364364 }
365365 }
366366}
0 commit comments