@Test void keyIsLangOnlyIfTypeIsMissing() throws Exception { SymbolTable symbolTable = new SymbolTable("en", Optional.empty(), emptyList()); assertEquals("en", new Configuration(new File(""), symbolTable, emptyList(), "en", false).getKey()); }
public String getKey() { if (getLang().equals("ja") && getVariant().equals("zenkaku")) return "ja"; return getLang() + (isEmpty(getVariant()) ? "" : "." + getVariant()); }
Configuration implements Serializable, Cloneable { public String getKey() { if (getLang().equals("ja") && getVariant().equals("zenkaku")) return "ja"; return getLang() + (isEmpty(getVariant()) ? "" : "." + getVariant()); } }
Configuration implements Serializable, Cloneable { public String getKey() { if (getLang().equals("ja") && getVariant().equals("zenkaku")) return "ja"; return getLang() + (isEmpty(getVariant()) ? "" : "." + getVariant()); } Configuration(File base, SymbolTable symbolTable, List<ValidatorConfiguration> validatorConfigs, String lang, boolean secure); }
Configuration implements Serializable, Cloneable { public String getKey() { if (getLang().equals("ja") && getVariant().equals("zenkaku")) return "ja"; return getLang() + (isEmpty(getVariant()) ? "" : "." + getVariant()); } Configuration(File base, SymbolTable symbolTable, List<ValidatorConfiguration> validatorConfigs, String lang, boolean secure); static List<String> getDefaultConfigKeys(); SymbolTable getSymbolTable(); List<ValidatorConfiguration> getValidatorConfigs(); String getLang(); String getVariant(); RedPenTokenizer getTokenizer(); String getKey(); File getHome(); File getBase(); File findFile(String relativePath); boolean isSecure(); @Override Configuration clone(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); static ConfigurationBuilder builder(); static ConfigurationBuilder builder(String key); }
Configuration implements Serializable, Cloneable { public String getKey() { if (getLang().equals("ja") && getVariant().equals("zenkaku")) return "ja"; return getLang() + (isEmpty(getVariant()) ? "" : "." + getVariant()); } Configuration(File base, SymbolTable symbolTable, List<ValidatorConfiguration> validatorConfigs, String lang, boolean secure); static List<String> getDefaultConfigKeys(); SymbolTable getSymbolTable(); List<ValidatorConfiguration> getValidatorConfigs(); String getLang(); String getVariant(); RedPenTokenizer getTokenizer(); String getKey(); File getHome(); File getBase(); File findFile(String relativePath); boolean isSecure(); @Override Configuration clone(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); static ConfigurationBuilder builder(); static ConfigurationBuilder builder(String key);  }