io.deepsense.neptune.clientlibrary.exceptions.utils.ExceptionMessageUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of neptune-client-library Show documentation
Show all versions of neptune-client-library Show documentation
Enables integration with Neptune in your Java code
/**
* Copyright (c) 2016, CodiLime Inc.
*/
package io.deepsense.neptune.clientlibrary.exceptions.utils;
public final class ExceptionMessageUtils {
private ExceptionMessageUtils() {
}
public static String lowercasePluralEntityClassName(String entityClassName) {
return entityClassName.toLowerCase() + "s";
}
public static String capitalizedEntityClassName(String entityClassName) {
String lowercaseEntityName = entityClassName.toLowerCase();
return lowercaseEntityName.substring(0, 1).toUpperCase() + lowercaseEntityName.substring(1);
}
public static String capitalizedPluralEntityClassName(String entityClassName) {
return capitalizedEntityClassName(entityClassName + "s");
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy