public class UserConfig extends Object
Constructor and Description |
---|
UserConfig() |
UserConfig(List<String> userSpecificSpellerWords) |
UserConfig(List<String> userSpecificSpellerWords,
List<Rule> userSpecificRules,
Map<String,Integer> ruleValues,
int maxSpellingSuggestions,
Long premiumUid,
String userDictName,
Long userDictCacheSize,
LinguServices linguServices,
boolean filterDictionaryMatches,
List<String> abTest,
Long textSessionId,
boolean hidePremiumMatches,
List<String> preferredLanguages) |
UserConfig(List<String> userSpecificSpellerWords,
Map<String,Integer> ruleValues) |
UserConfig(List<String> userSpecificSpellerWords,
Map<String,Integer> ruleValues,
int maxSpellingSuggestions,
Long premiumUid,
String userDictName,
Long userDictCacheSize,
LinguServices linguServices) |
UserConfig(Map<String,Integer> ruleValues) |
UserConfig(Map<String,Integer> ruleValues,
LinguServices linguServices) |
Modifier and Type | Method and Description |
---|---|
static void |
enableABTests() |
boolean |
equals(Object o) |
boolean |
filterDictionaryMatches() |
List<String> |
getAbTest() |
Set<String> |
getAcceptedPhrases() |
List<String> |
getAcceptedWords() |
int |
getConfigValueByID(String ruleID) |
Map<String,Integer> |
getConfigValues() |
boolean |
getHidePremiumMatches() |
LinguServices |
getLinguServices() |
int |
getMaxSpellingSuggestions() |
List<String> |
getPreferredLanguages()
This may not contain the full preferredLanguages list as it's intended to only be used with ForeignLanguageChecker
|
Long |
getPremiumUid() |
List<Rule> |
getRules() |
Long |
getTextSessionId() |
Long |
getUserDictCacheSize()
for speedup, certain users custom dictionaries are cached.
|
String |
getUserDictName() |
static boolean |
hasABTestsEnabled() |
int |
hashCode() |
boolean |
hasLinguServices() |
void |
insertConfigValues(Map<String,Integer> ruleValues) |
String |
toString() |
public UserConfig()
public UserConfig(Map<String,Integer> ruleValues, LinguServices linguServices)
public UserConfig(List<String> userSpecificSpellerWords, Map<String,Integer> ruleValues, int maxSpellingSuggestions, Long premiumUid, String userDictName, Long userDictCacheSize, LinguServices linguServices)
public UserConfig(List<String> userSpecificSpellerWords, List<Rule> userSpecificRules, Map<String,Integer> ruleValues, int maxSpellingSuggestions, Long premiumUid, String userDictName, Long userDictCacheSize, LinguServices linguServices, boolean filterDictionaryMatches, @Nullable List<String> abTest, @Nullable Long textSessionId, boolean hidePremiumMatches, List<String> preferredLanguages)
public static void enableABTests()
public static boolean hasABTestsEnabled()
public int getMaxSpellingSuggestions()
public int getConfigValueByID(String ruleID)
public boolean hasLinguServices()
public LinguServices getLinguServices()
public Long getUserDictCacheSize()
public String getUserDictName()
public Long getPremiumUid()
public Long getTextSessionId()
public boolean filterDictionaryMatches()
public boolean getHidePremiumMatches()