Merge pull request #895 from dahuoyzs/v5-dev

HttpUtil添加downloadBytes方法✒️
This commit is contained in:
Golden Looly
2020-05-30 07:26:27 +08:00
committed by GitHub
3 changed files with 45 additions and 0 deletions

View File

@@ -251,6 +251,19 @@ public class DateUtil extends CalendarUtil {
return DateTime.of(date).dayOfMonth();
}
/**
* 获得指定日期是这个日期所在月份的第几天<br>
*
* @param date 日期
* @return 天
* issue#896@Github
*/
public static int dayOfYear(Date date) {
Calendar instance = Calendar.getInstance();
instance.setTime(date);
return instance.get(Calendar.DAY_OF_YEAR);
}
/**
* 获得指定日期是星期几1表示周日2表示周一
*

View File

@@ -345,6 +345,17 @@ public class StrUtil {
return true;
}
/**
* 是否存都不为{@code null}或空对象,通过{@link StrUtil#hasEmpty(CharSequence...)} 判断元素
*
* @param args 被检查的对象,一个或者多个
* @return 是否都不为空
* @since 5.3.5
*/
public static boolean isAllNotEmpty(CharSequence... args) {
return false == hasEmpty(args);
}
/**
* 检查字符串是否为null、“null”、“undefined”
*