⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 stringvalidation.java

📁 pojo的mvc框架
💻 JAVA
字号:
package xyz.frame.validator;/** * Utility methods for string validation *  * @author Guilherme Silveira */public class StringValidation {	/**	 * Returns true if the string is null or trimmed empty.	 * 	 * @param value	 *            the string to check	 * @return true if null or trimmed empty	 */	public static boolean isBlank(String value) {		return value == null || value.trim().equals("");	}	/**	 * Returns true if the string is null or empty.	 * 	 * @param value	 *            the string to check	 * @return true if null or empty	 */	public static boolean isEmpty(String value) {		return value == null || value.equals("");	}}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -