Class WeightedLanguage
- java.lang.Object
-
- org.jboss.resteasy.reactive.common.util.WeightedLanguage
-
- All Implemented Interfaces:
Comparable<WeightedLanguage>
public class WeightedLanguage extends Object implements Comparable<WeightedLanguage>
- Author:
- Bill Burke
-
-
Constructor Summary
Constructors Constructor Description WeightedLanguage(Locale locale, float weight)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(WeightedLanguage o)
boolean
equals(Object obj)
Locale
getLocale()
float
getWeight()
int
hashCode()
static WeightedLanguage
parse(String lang)
String
toString()
-
-
-
Constructor Detail
-
WeightedLanguage
public WeightedLanguage(Locale locale, float weight)
-
-
Method Detail
-
getWeight
public float getWeight()
-
getLocale
public Locale getLocale()
-
compareTo
public int compareTo(WeightedLanguage o)
- Specified by:
compareTo
in interfaceComparable<WeightedLanguage>
-
parse
public static WeightedLanguage parse(String lang)
-
-