mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix code
This commit is contained in:
@@ -1339,8 +1339,8 @@ public class DateUtil extends CalendarUtil {
|
|||||||
* <pre>
|
* <pre>
|
||||||
* 有时候我们计算相差天数的时候需要忽略时分秒。
|
* 有时候我们计算相差天数的时候需要忽略时分秒。
|
||||||
* 比如:2016-02-01 23:59:59和2016-02-02 00:00:00相差一秒
|
* 比如:2016-02-01 23:59:59和2016-02-02 00:00:00相差一秒
|
||||||
* 如果isReset为<code>false</code>相差天数为0。
|
* 如果isReset为{@code false}相差天数为0。
|
||||||
* 如果isReset为<code>true</code>相差天数将被计算为1
|
* 如果isReset为{@code true}相差天数将被计算为1
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* @param beginDate 起始日期
|
* @param beginDate 起始日期
|
||||||
|
@@ -20,10 +20,10 @@ public interface JSONGetter<K> extends OptNullBasicTypeFromObjectGetter<K> {
|
|||||||
JSONConfig getConfig();
|
JSONConfig getConfig();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* key对应值是否为<code>null</code>或无此key
|
* key对应值是否为{@code null}或无此key
|
||||||
*
|
*
|
||||||
* @param key 键
|
* @param key 键
|
||||||
* @return true 无此key或值为<code>null</code>或{@link JSONNull#NULL}返回<code>false</code>,其它返回<code>true</code>
|
* @return true 无此key或值为{@code null}或{@link JSONNull#NULL}返回{@code false},其它返回{@code true}
|
||||||
*/
|
*/
|
||||||
default boolean isNull(K key) {
|
default boolean isNull(K key) {
|
||||||
return JSONNull.NULL.equals(this.getObj(key));
|
return JSONNull.NULL.equals(this.getObj(key));
|
||||||
|
Reference in New Issue
Block a user