fix comment

This commit is contained in:
Looly 2021-11-26 22:50:26 +08:00
parent 496d07c8d7
commit 7ece10a15d
2 changed files with 8 additions and 8 deletions

View File

@ -253,8 +253,10 @@ public class Opt<T> {
* String hutool = Opt.ofBlankAble("hutool").mapOrElse(String::toUpperCase, () -> Console.log("yes")).mapOrElse(String::intern, () -> Console.log("Value is not present~")).get(); * String hutool = Opt.ofBlankAble("hutool").mapOrElse(String::toUpperCase, () -> Console.log("yes")).mapOrElse(String::intern, () -> Console.log("Value is not present~")).get();
* }</pre> * }</pre>
* *
* @param <U> map后新的类型
* @param mapper 包裹里的值存在时的操作 * @param mapper 包裹里的值存在时的操作
* @param emptyAction 包裹里的值不存在时的操作 * @param emptyAction 包裹里的值不存在时的操作
* @return 新的类型的Opt
* @throws NullPointerException 如果包裹里的值存在时执行的操作为 {@code null}, 或者包裹里的值不存在时的操作为 {@code null}则抛出{@code NPE} * @throws NullPointerException 如果包裹里的值存在时执行的操作为 {@code null}, 或者包裹里的值不存在时的操作为 {@code null}则抛出{@code NPE}
*/ */
public <U> Opt<U> mapOrElse(Function<? super T, ? extends U> mapper, VoidFunc0 emptyAction) { public <U> Opt<U> mapOrElse(Function<? super T, ? extends U> mapper, VoidFunc0 emptyAction) {

View File

@ -201,8 +201,6 @@ public class IdcardUtil {
* <li>余数只可能有0 1 2 3 4 5 6 7 8 9 10这11个数字其分别对应的最后一位身份证的号码为1 0 X 9 8 7 6 5 4 3 2</li> * <li>余数只可能有0 1 2 3 4 5 6 7 8 9 10这11个数字其分别对应的最后一位身份证的号码为1 0 X 9 8 7 6 5 4 3 2</li>
* <li>通过上面得知如果余数是2就会在身份证的第18位数字上出现罗马数字的如果余数是10身份证的最后一位号码就是2</li> * <li>通过上面得知如果余数是2就会在身份证的第18位数字上出现罗马数字的如果余数是10身份证的最后一位号码就是2</li>
* </ol> * </ol>
*
<p>
* <ol> * <ol>
* <li>香港人在大陆的身份证810000开头同样可以直接获取到 性别出生日期</li> * <li>香港人在大陆的身份证810000开头同样可以直接获取到 性别出生日期</li>
* <li>81000019980902013X: 文绎循 1998-09-02</li> * <li>81000019980902013X: 文绎循 1998-09-02</li>
@ -218,7 +216,6 @@ public class IdcardUtil {
* <li>830000194609150010: 苏建文 1946-09-14</li> * <li>830000194609150010: 苏建文 1946-09-14</li>
* <li>83000019810715006X: 刁婉琇 1981-07-15</li> * <li>83000019810715006X: 刁婉琇 1981-07-15</li>
* </ol> * </ol>
* </p>
* *
* @param idcard 待验证的身份证 * @param idcard 待验证的身份证
* @return 是否有效的18位身份证忽略x的大小写 * @return 是否有效的18位身份证忽略x的大小写
@ -761,6 +758,7 @@ public class IdcardUtil {
/** /**
* 获取年龄 * 获取年龄
*
* @return 年龄 * @return 年龄
*/ */
public int getAge() { public int getAge() {