Skip to content

Commit

Permalink
2.0.0 move around and delete unnecessary stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
rotgruengelb committed Jul 15, 2024
1 parent 41df3eb commit 7c66872
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 194 deletions.
2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version=1.4.1
version=2.0.0
2 changes: 1 addition & 1 deletion gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ fi
# * --module-path (only if needed)
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.

# For Cygwin or MSYS, switch paths to Windows format before running java
# For Cygwin or MSYS, switch paths to Windows util before running java
if "$cygwin" || "$msys" ; then
APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
Expand Down
116 changes: 0 additions & 116 deletions src/main/java/net/rotgruengelb/nixienaut/math/ClampedNum.java

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.rotgruengelb.nixienaut;
package net.rotgruengelb.nixienaut.object;

import net.rotgruengelb.nixienaut.annotation.PlaceholderValue;
import net.rotgruengelb.nixienaut.exeption.NotImplementedException;
Expand All @@ -16,14 +16,10 @@ public class Dummy {
*
* @see Dummy
*/
public static void _staticVoid() {
}
public static void _staticVoid() { }

@PlaceholderValue("Not implemented yet!")
public static void notImplemented() {
throw new NotImplementedException();
}
public static void notImplemented() { throw new NotImplementedException(); }

public void _void() {
}
public void _void() { }
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package net.rotgruengelb.nixienaut.format;
package net.rotgruengelb.nixienaut.util;

import java.util.Map;
import java.util.Objects;

public class TimeFormatting {
public class StringUtils {

public static String formatTime(int time, String format) {
Map<String, Integer> values = Map.of("d", time / 1728000, "h", (time % 1728000) / 72000, "m", (time % 72000) / 1200, "s", (time % 1200) / 20, "tH", time / 72000, "tM", time / 1200, "tS", time / 20);
Expand All @@ -21,4 +21,20 @@ public static String formatTime(int time, String format) {
}
return String.join("", formatSplit);
}

public static String convertSnakeCaseToTitleCase(String snakeCaseText) {
String[] words = snakeCaseText.split("_");
StringBuilder titleCaseText = new StringBuilder();

for (String word : words) {
if (!word.isEmpty()) {
titleCaseText.append(Character.toUpperCase(word.charAt(0)))
.append(word.substring(1)
.toLowerCase())
.append(" ");
}
}
return titleCaseText.toString()
.trim();
}
}
65 changes: 0 additions & 65 deletions src/test/java/tests/ClampedNumTests.java

This file was deleted.

0 comments on commit 7c66872

Please sign in to comment.