org.metricssampler.util.StringUtils Maven / Gradle / Ivy
package org.metricssampler.util;
public final class StringUtils {
private StringUtils() {
}
public static String camelCaseToSplit(final String str, final String separator) {
final StringBuilder result = new StringBuilder();
final char[] chars = str.toCharArray();
boolean prevIsUpperCase = false;
boolean prevIsLowerCase = false;
for (int i=0; i