public class Country extends Object
| Constructor and Description |
|---|
Country() |
| Modifier and Type | Method and Description |
|---|---|
static Country |
fromCode(String code)
Creates a country from a given code.
|
static Country |
fromLanguageRanges(String ranges)
Extracts the country from the given accept language header.
|
String |
toString() |
@Nullable public static Country fromCode(@Nullable String code)
code - Must consist of two lower letters or simply null. Case is ignored@Nullable public static Country fromLanguageRanges(@Nullable String ranges)
ranges - A language range list. See Locale.LanguageRange.parse(String)Copyright © 2022 drjekyll.org. All rights reserved.