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

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

Go to download

Use this library to communicate with the Viber API to develop a bot for https://developers.viber.com/.

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