public String replaceChars(String integerString) { String result = ""; if (integerString.length() > 0) { int integerI = Integer.parseInt(integerString.substring(0, 1)); for (EnumFooBarQix value : EnumFooBarQix.values()) { result += equalsAndReplace(integerI, value); } result += replaceChars(integerString.substring(1)); } return result; }
public String fooBarQixiseInteger(int i) { StringBuffer result = new StringBuffer(""); for (EnumFooBarQix value : EnumFooBarQix.values()) { result.append(divisible(i, value)); } result.append(replaceChars(Integer.toString(i))); if ("".equals(result)) { result.append(i); } return result.toString(); }