🛠️ Code cleanup & added many new features #1

Merged
gnmyt merged 121 commits from features/code-cleanup into master 2021-09-02 13:34:00 +00:00
Showing only changes of commit c6ed5d9b8d - Show all commits

View File

@ -6,6 +6,7 @@ public class StatementBuilder {
/** /**
* Basic constructor of the {@link StatementBuilder} with a prefilled text * Basic constructor of the {@link StatementBuilder} with a prefilled text
*
* @param text The text you want to add * @param text The text you want to add
*/ */
public StatementBuilder(String text) { public StatementBuilder(String text) {
@ -21,6 +22,7 @@ public class StatementBuilder {
/** /**
* Adds a text to the query with spaces * Adds a text to the query with spaces
*
* @param text The text you want to add * @param text The text you want to add
* @return this class * @return this class
*/ */
@ -32,8 +34,23 @@ public class StatementBuilder {
return this; return this;
} }
/**
* Adds a text to the query without spaces
*
* @param text The text you want to add
* @return this class
*/
public StatementBuilder appendDefault(String text) {
if (text.isEmpty()) return this;
query.append(text);
return this;
}
/** /**
* Builds the query string * Builds the query string
*
* @return the built string * @return the built string
*/ */
public String build() { public String build() {