static { for (ColumnMatchingCondition conditon : ColumnMatchingCondition.values()) { String key = conditon.getJapaneseName(); if (japaneseNameMap.containsKey(key)) { throw new RuntimeException("日本語名に重複があります"); } japaneseNameMap.put(key, conditon); } }
/** * 日本語名の配列を返す。 * * @return 日本語名の配列 */ public static String[] getJapaneseNames() { ColumnMatchingCondition[] values = ColumnMatchingCondition.values(); String[] result = new String[values.length]; for (int i = 0; i < values.length; i++) { result[i] = values[i].getJapaneseName(); } return result; }