0
点赞
收藏
分享

微信扫一扫

commons-lang3工具类

千妈小语 2022-03-30 阅读 62
java
<dependency>
    <groupId>org.apache.commons</groupId>
    <artifactId>commons-lang3</artifactId>
    <version>3.8</version>
</dependency>

StringUtils工具类

boolean isEmpty = StringUtils.isEmpty(xxxStr);
boolean isNotEmpty = StringUtils.isNotEmpty(xxxStr);

EqualsBuilder()

帮助生成equals方法,可以自定义要比较哪些字段

HashCodeBuilder()

帮助生成hashCode方法,可以自定义要hash的字段或排除哪些字段

FileUtils工具类

byte[] byteArr = FileUtils.readFileToByteArray(xxxFille);//读取整个文件的内容,返回byte数组

举报

相关推荐

0 条评论