![JAR search and dependency download from the Maven repository](/logo.png)
com.github.bootfastconfig.result.L18nResultCode Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of boot-fast-spring-tool Show documentation
Show all versions of boot-fast-spring-tool Show documentation
Parent pom providing dependency and plugin management for applications
built with Maven
package com.github.bootfastconfig.result;
import com.github.bootfastconfig.result.ResultCode;
import com.github.bootfastconfig.springtool.MessageUtil;
/**
* @author mister
*/
public class L18nResultCode implements ResultCode {
private ResultCode resultCode;
private Object[] args;
public L18nResultCode(ResultCode resultCode) {
this.resultCode = resultCode;
}
public L18nResultCode(ResultCode resultCode, Object... args) {
this.resultCode = resultCode;
this.args = args;
}
@Override
public String getMessage() {
return MessageUtil.codLi18n(resultCode.getCode(), args, resultCode.getMessage());
}
@Override
public String getCode() {
return resultCode.getCode();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy