public FooBarQixBuilder buildPartDivisor(int n) { for (FooBarQix fbq : FooBarQix.values()) { if (n % fbq.value == 0) { sb.append(fbq.replace); } } return this; }
public FooBarQixBuilder buildPartContent(int n) { String s = Integer.toString(n); for (int j = 0; j < s.length(); j++) { for (FooBarQix fbq : FooBarQix.values()) { if (s.charAt(j) == fbq.charValue) { sb.append(fbq.replace); } } } return this; }