Java Code Examples for cn.hutool.core.util.StrUtil#maxLength()

The following examples show how to use cn.hutool.core.util.StrUtil#maxLength() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: UserOperateLogV1.java    From Jpom with MIT License 4 votes vote down vote up
public void setReqData(String reqData) {
    this.reqData = StrUtil.maxLength(reqData, 999999990);
}
 
Example 2
Source File: UserOperateLogV1.java    From Jpom with MIT License 4 votes vote down vote up
public void setUserAgent(String userAgent) {
    this.userAgent = StrUtil.maxLength(userAgent, 280);
}
 
Example 3
Source File: UserOperateLogV1.java    From Jpom with MIT License 4 votes vote down vote up
public void setResultMsg(String resultMsg) {
    this.resultMsg = StrUtil.maxLength(resultMsg, 999999990);
}