This commit is contained in:
Looly
2020-10-14 11:43:24 +08:00
parent d24ff836b8
commit f11a151471
2 changed files with 21 additions and 20 deletions

View File

@@ -85,6 +85,7 @@ public class LunarFestival {
/** /**
* 获得节日列表 * 获得节日列表
* *
* @param year 年
* @param month 月 * @param month 月
* @param day 日 * @param day 日
* @return 获得农历节日 * @return 获得农历节日

View File

@@ -126,7 +126,7 @@ public class StrUtil {
public static final String DOT = "."; public static final String DOT = ".";
/** /**
* 字符串常量:双点 {@code ".."} <br /> * 字符串常量:双点 {@code ".."} <br>
* 用途:作为指向上级文件夹的路径,如:{@code "../path"} * 用途:作为指向上级文件夹的路径,如:{@code "../path"}
*/ */
public static final String DOUBLE_DOT = ".."; public static final String DOUBLE_DOT = "..";
@@ -147,13 +147,13 @@ public class StrUtil {
public static final String EMPTY = ""; public static final String EMPTY = "";
/** /**
* 字符串常量:{@code "null"} <br /> * 字符串常量:{@code "null"} <br>
* 注意:{@code "null" != null} * 注意:{@code "null" != null}
*/ */
public static final String NULL = "null"; public static final String NULL = "null";
/** /**
* 字符串常量:回车符 {@code "\r"} <br /> * 字符串常量:回车符 {@code "\r"} <br>
* 解释:该字符常用于表示 Linux 系统和 MacOS 系统下的文本换行 * 解释:该字符常用于表示 Linux 系统和 MacOS 系统下的文本换行
*/ */
public static final String CR = "\r"; public static final String CR = "\r";
@@ -164,7 +164,7 @@ public class StrUtil {
public static final String LF = "\n"; public static final String LF = "\n";
/** /**
* 字符串常量Windows 换行 {@code "\r\n"} <br /> * 字符串常量Windows 换行 {@code "\r\n"} <br>
* 解释:该字符串常用于表示 Windows 系统下的文本换行 * 解释:该字符串常用于表示 Windows 系统下的文本换行
*/ */
public static final String CRLF = "\r\n"; public static final String CRLF = "\r\n";
@@ -271,7 +271,7 @@ public class StrUtil {
* *
* <p>注意:该方法与 {@link #isEmpty(CharSequence)} 的区别是: * <p>注意:该方法与 {@link #isEmpty(CharSequence)} 的区别是:
* 该方法会校验空白字符,且性能相对于 {@link #isEmpty(CharSequence)} 略慢。</p> * 该方法会校验空白字符,且性能相对于 {@link #isEmpty(CharSequence)} 略慢。</p>
* <br /> * <br>
* *
* <p>建议:</p> * <p>建议:</p>
* <ul> * <ul>
@@ -364,7 +364,7 @@ public class StrUtil {
/** /**
* <p>指定字符串数组中,是否包含空字符串。</p> * <p>指定字符串数组中,是否包含空字符串。</p>
* <p>如果指定的字符串数组的长度为 0或者其中的任意一个元素是空字符串则返回 true。</p> * <p>如果指定的字符串数组的长度为 0或者其中的任意一个元素是空字符串则返回 true。</p>
* <br /> * <br>
* *
* <p>例:</p> * <p>例:</p>
* <ul> * <ul>
@@ -376,8 +376,8 @@ public class StrUtil {
* *
* <p>注意:该方法与 {@link #isAllBlank(CharSequence...)} 的区别在于:</p> * <p>注意:该方法与 {@link #isAllBlank(CharSequence...)} 的区别在于:</p>
* <ul> * <ul>
* hasBlank(CharSequence...) 等价于 {@code isBlank(...) || isBlank(...) || ...}<br /> * <li>hasBlank(CharSequence...) 等价于 {@code isBlank(...) || isBlank(...) || ...}</li>
* {@link #isAllBlank(CharSequence...)} 等价于 {@code isBlank(...) && isBlank(...) && ...} * <li>{@link #isAllBlank(CharSequence...)} 等价于 {@code isBlank(...) && isBlank(...) && ...}</li>
* </ul> * </ul>
* *
* @param strs 字符串列表 * @param strs 字符串列表
@@ -399,7 +399,7 @@ public class StrUtil {
/** /**
* <p>指定字符串数组中的元素,是否全部为空字符串。</p> * <p>指定字符串数组中的元素,是否全部为空字符串。</p>
* <p>如果指定的字符串数组的长度为 0或者所有元素都是空字符串则返回 true。</p> * <p>如果指定的字符串数组的长度为 0或者所有元素都是空字符串则返回 true。</p>
* <br /> * <br>
* *
* <p>例:</p> * <p>例:</p>
* <ul> * <ul>
@@ -411,8 +411,8 @@ public class StrUtil {
* *
* <p>注意:该方法与 {@link #hasBlank(CharSequence...)} 的区别在于:</p> * <p>注意:该方法与 {@link #hasBlank(CharSequence...)} 的区别在于:</p>
* <ul> * <ul>
* {@link #hasBlank(CharSequence...)} 等价于 {@code isBlank(...) || isBlank(...) || ...}<br /> * <li>{@link #hasBlank(CharSequence...)} 等价于 {@code isBlank(...) || isBlank(...) || ...}</li>
* isAllBlank(CharSequence...) 等价于 {@code isBlank(...) && isBlank(...) && ...} * <li>isAllBlank(CharSequence...) 等价于 {@code isBlank(...) && isBlank(...) && ...}</li>
* </ul> * </ul>
* *
* @param strs 字符串列表 * @param strs 字符串列表
@@ -610,7 +610,7 @@ public class StrUtil {
/** /**
* <p>是否包含空字符串。</p> * <p>是否包含空字符串。</p>
* <p>如果指定的字符串数组的长度为 0或者其中的任意一个元素是空字符串则返回 true。</p> * <p>如果指定的字符串数组的长度为 0或者其中的任意一个元素是空字符串则返回 true。</p>
* <br /> * <br>
* *
* <p>例:</p> * <p>例:</p>
* <ul> * <ul>
@@ -623,8 +623,8 @@ public class StrUtil {
* *
* <p>注意:该方法与 {@link #isAllEmpty(CharSequence...)} 的区别在于:</p> * <p>注意:该方法与 {@link #isAllEmpty(CharSequence...)} 的区别在于:</p>
* <ul> * <ul>
* hasEmpty(CharSequence...) 等价于 {@code isEmpty(...) || isEmpty(...) || ...}<br /> * <li>hasEmpty(CharSequence...) 等价于 {@code isEmpty(...) || isEmpty(...) || ...}</li>
* {@link #isAllEmpty(CharSequence...)} 等价于 {@code isEmpty(...) && isEmpty(...) && ...} * <li>{@link #isAllEmpty(CharSequence...)} 等价于 {@code isEmpty(...) && isEmpty(...) && ...}</li>
* </ul> * </ul>
* *
* @param strs 字符串列表 * @param strs 字符串列表
@@ -646,7 +646,7 @@ public class StrUtil {
/** /**
* <p>指定字符串数组中的元素,是否全部为空字符串。</p> * <p>指定字符串数组中的元素,是否全部为空字符串。</p>
* <p>如果指定的字符串数组的长度为 0或者所有元素都是空字符串则返回 true。</p> * <p>如果指定的字符串数组的长度为 0或者所有元素都是空字符串则返回 true。</p>
* <br /> * <br>
* *
* <p>例:</p> * <p>例:</p>
* <ul> * <ul>
@@ -659,8 +659,8 @@ public class StrUtil {
* *
* <p>注意:该方法与 {@link #hasEmpty(CharSequence...)} 的区别在于:</p> * <p>注意:该方法与 {@link #hasEmpty(CharSequence...)} 的区别在于:</p>
* <ul> * <ul>
* {@link #hasEmpty(CharSequence...)} 等价于 {@code isEmpty(...) || isEmpty(...) || ...}<br /> * <li>{@link #hasEmpty(CharSequence...)} 等价于 {@code isEmpty(...) || isEmpty(...) || ...}</li>
* isAllEmpty(CharSequence...) 等价于 {@code isEmpty(...) && isEmpty(...) && ...} * <li>isAllEmpty(CharSequence...) 等价于 {@code isEmpty(...) && isEmpty(...) && ...}</li>
* </ul> * </ul>
* *
* @param strs 字符串列表 * @param strs 字符串列表
@@ -682,7 +682,7 @@ public class StrUtil {
/** /**
* <p>指定字符串数组中的元素,是否都不为空字符串。</p> * <p>指定字符串数组中的元素,是否都不为空字符串。</p>
* <p>如果指定的字符串数组的长度不为 0或者所有元素都不是空字符串则返回 true。</p> * <p>如果指定的字符串数组的长度不为 0或者所有元素都不是空字符串则返回 true。</p>
* <br /> * <br>
* *
* <p>例:</p> * <p>例:</p>
* <ul> * <ul>
@@ -695,8 +695,8 @@ public class StrUtil {
* *
* <p>注意:该方法与 {@link #isAllEmpty(CharSequence...)} 的区别在于:</p> * <p>注意:该方法与 {@link #isAllEmpty(CharSequence...)} 的区别在于:</p>
* <ul> * <ul>
* {@link #isAllEmpty(CharSequence...)} 等价于 {@code isEmpty(...) && isEmpty(...) && ...}<br /> * <li>{@link #isAllEmpty(CharSequence...)} 等价于 {@code isEmpty(...) && isEmpty(...) && ...}</li>
* isAllNotEmpty(CharSequence...) 等价于 {@code !isEmpty(...) && !isEmpty(...) && ...} * <li>isAllNotEmpty(CharSequence...) 等价于 {@code !isEmpty(...) && !isEmpty(...) && ...}</li>
* </ul> * </ul>
* *
* @param args 字符串数组 * @param args 字符串数组