stringvalidation.java
来自「pojo的mvc框架」· Java 代码 · 共 32 行
JAVA
32 行
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 + =
减小字号Ctrl + -
显示快捷键?