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

tech.kronicle.utils.StringUtils Maven / Gradle / Ivy

Go to download

Kronicle utils library that contains utility classes for use by Kronicle and its plugins

There is a newer version: 0.1.331
Show newest version
package tech.kronicle.utils;

import static java.util.Objects.requireNonNull;

public final class StringUtils {

    public static String requireNonEmpty(String value, String name) {
        requireNonNull(value, name);

        if (value.isEmpty()) {
            throw new IllegalArgumentException(name + " must not be empty");
        }

        return value;
    }

    private StringUtils() {
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy