Searched refs:MAX_WEIGHT (Results 1 – 6 of 6) 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()
263 w = MAX_WEIGHT; in parse()276 if (w < MIN_WEIGHT || w > MAX_WEIGHT) { in parse()280 + " and " + MAX_WEIGHT + "."); in parse()
3336 public static final double MAX_WEIGHT = 1.0; field in Locale.LanguageRange3361 this(range, MAX_WEIGHT); in LanguageRange()3381 if (weight < MIN_WEIGHT || weight > MAX_WEIGHT) { in LanguageRange()
285 public static final double MAX_WEIGHT = 1.0; field in Locale.LanguageRange
281 public static final double MAX_WEIGHT = 1.0; field in Locale.LanguageRange
711 public static final double MAX_WEIGHT = 1.0; field in Locale.LanguageRange