public class WeightedLanguage extends Object implements Comparable<WeightedLanguage>
Constructor and Description |
---|
WeightedLanguage(Locale locale,
float weight) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(WeightedLanguage o) |
boolean |
equals(Object obj) |
Locale |
getLocale() |
float |
getWeight() |
static WeightedLanguage |
parse(String lang) |
String |
toString() |
public WeightedLanguage(Locale locale, float weight)
public float getWeight()
public Locale getLocale()
public int compareTo(WeightedLanguage o)
compareTo
in interface Comparable<WeightedLanguage>
public static WeightedLanguage parse(String lang)
Copyright © 2017 JBoss by Red Hat. All rights reserved.