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

com.viber.bot.Preconditions Maven / Gradle / Ivy

package com.viber.bot;

import com.google.common.base.Strings;

import javax.annotation.Nonnull;
import javax.annotation.Nullable;

import static com.google.common.base.Preconditions.checkNotNull;

public class Preconditions {
    public static String checkNotEmpty(final @Nonnull String str) {
        return checkNotEmpty(str, null);
    }

    public static String checkNotEmpty(final @Nonnull String str, final @Nullable String errorMessage) {
        return checkNotNull(Strings.emptyToNull(str), errorMessage);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy