com.github.mygreen.cellformatter.term.OtherTerm Maven / Gradle / Ivy
package com.github.mygreen.cellformatter.term;
import java.util.Locale;
import com.github.mygreen.cellformatter.lang.ArgUtils;
import com.github.mygreen.cellformatter.lang.MSLocale;
import com.github.mygreen.cellformatter.tokenizer.Token;
/**
*
* @author T.TSUCHIE
*
*/
public class OtherTerm implements Term {
private final Token token;
public OtherTerm(final Token token) {
ArgUtils.notNull(token, "token");
this.token = token;
}
@Override
public String format(final T value, final MSLocale formatLocale, final Locale runtimeLocale) {
return token.getValue();
}
public Token getToken() {
return token;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy