diff options
author | Logan Fick <logaldeveloper@protonmail.com> | 2019-02-08 18:49:51 -0500 |
---|---|---|
committer | Logan Fick <logaldeveloper@protonmail.com> | 2019-02-08 18:49:51 -0500 |
commit | 7ca3bc7379215b7726480ebb14c3dd07fe521f62 (patch) | |
tree | 70abc6560aa910a33674a99e2532ba4c52e606a9 /src/main/java/com/redstoner/misc/mysql/types/text/Enum.java | |
parent | 6dfe3195cd6d939997deb8e89cce220ba625b8ac (diff) |
Reformatted code.
Diffstat (limited to 'src/main/java/com/redstoner/misc/mysql/types/text/Enum.java')
-rw-r--r-- | src/main/java/com/redstoner/misc/mysql/types/text/Enum.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main/java/com/redstoner/misc/mysql/types/text/Enum.java b/src/main/java/com/redstoner/misc/mysql/types/text/Enum.java index e68476d..6200292 100644 --- a/src/main/java/com/redstoner/misc/mysql/types/text/Enum.java +++ b/src/main/java/com/redstoner/misc/mysql/types/text/Enum.java @@ -4,24 +4,24 @@ import com.redstoner.misc.mysql.types.MysqlType; public class Enum extends MysqlType { private String[] possibleValues; - + public Enum(String... possibleValues) { this.possibleValues = possibleValues; } - + @Override public String getName() { String name = "ENUM("; - + for (int i = 0; i < possibleValues.length; i++) { name += "'" + possibleValues[i] + "'"; - + if (i != possibleValues.length - 1) { name += ","; } } - + return name + ")"; } - + } |