com.viber.bot.Preconditions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of viber-bot Show documentation
Show all versions of viber-bot Show documentation
Use this library to communicate with the Viber API to develop a bot for https://developers.viber.com/.
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);
}
}