Searched refs:MAX_WEIGHT (Results 1 – 3 of 3) sorted by relevance
19 import static java.util.Locale.LanguageRange.MAX_WEIGHT;42 assertEquals(1.0, MAX_WEIGHT); in testWeight_constantValues()46 assertEquals(MAX_WEIGHT, new LanguageRange("de-DE").getWeight()); in testConstructor_defaultsToMaxWeight()73 new LanguageRange(null, MAX_WEIGHT); in testConstructor_nullRange()77 new LanguageRange("de-DE", MAX_WEIGHT); // works in testConstructor_nullRange()129 new LanguageRange("en-US", LanguageRange.MAX_WEIGHT)); in testEqualsAndHashCode()
262 w = MAX_WEIGHT; in parse()275 if (w < MIN_WEIGHT || w > MAX_WEIGHT) { in parse()279 + " and " + MAX_WEIGHT + "."); in parse()
3002 public static final double MAX_WEIGHT = 1.0; field in Locale.LanguageRange3027 this(range, MAX_WEIGHT); in LanguageRange()3047 if (weight < MIN_WEIGHT || weight > MAX_WEIGHT) { in LanguageRange()