
io.prediction.Utils Maven / Gradle / Ivy
package io.prediction;
/**
* Utility class for PredictionIO Java SDK
*
* @author The PredictionIO Team (http://prediction.io)
* @version 0.2
* @since 0.2
*/
public class Utils {
public static String itypesAsString(String[] itypes) {
StringBuilder sbuilder = new StringBuilder();
int lastIdx = itypes.length - 1;
for (int i = 0; i < itypes.length; i++) {
sbuilder.append(itypes[i]);
if (i != lastIdx) {
sbuilder.append(",");
}
}
return sbuilder.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy