All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.deepsense.neptune.clientlibrary.exceptions.utils.ExceptionMessageUtils Maven / Gradle / Ivy

There is a newer version: 1.6.1
Show newest version
/**
 * 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