com.github.mygreen.cellformatter.callback.JapaneseCallback Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of excel-cellformatter Show documentation
Show all versions of excel-cellformatter Show documentation
Excelのセルの書式を解析してフォーマットするライブラリ。
package com.github.mygreen.cellformatter.callback;
import java.util.Locale;
/**
* 日本語のロケール情報を許可するCallback。
*
* @since 0.5
* @author T.TSUCHIE
*
* @param 変換元の値
*/
public abstract class JapaneseCallback implements Callback {
@Override
public boolean isApplicable(final Locale locale) {
if(locale == null) {
return false;
}
if(locale.getLanguage().equalsIgnoreCase("ja")) {
return true;
}
return false;
}
}