com.yeepay.g3.sdk.yop.encrypt.Assert Maven / Gradle / Ivy
package com.yeepay.g3.sdk.yop.encrypt;
import org.apache.commons.lang3.StringUtils;
/**
* title:
* description: 描述
* Copyright: Copyright (c)2014
* Company: 易宝支付(YeePay)
*
* @author baitao.ji
* @version 1.0.0
* @since 15/10/15 18:05
*/
public class Assert {
public static void notNull(Object object, String message) {
if (object == null) {
throw new IllegalArgumentException(message);
}
}
public static void notNull(Object object) {
notNull(object, "[Assertion failed] - this argument is required; it must not be null");
}
public static void hasText(String text, String message) {
if (StringUtils.isEmpty(text)) {
throw new IllegalArgumentException(message);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy