com.github.bingoohuang.sqltrigger.NameUtil Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sql-trigger Show documentation
Show all versions of sql-trigger Show documentation
delay queue based on redis
The newest version!
package com.github.bingoohuang.sqltrigger;
import lombok.val;
public class NameUtil {
public static String toUpperUnderScore(String name) {
val sb = new StringBuilder();
char[] chars = name.toCharArray();
sb.append(chars[0]);
for (int i = 1; i < chars.length; ++i) {
if (Character.isUpperCase(chars[i])) {
sb.append("_");
}
sb.append(chars[i]);
}
return sb.toString().toUpperCase();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy