public final class Language extends Object
| Modifier and Type | Field and Description |
|---|---|
static Language |
THE_INSTANCE
The singleton instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkValid(String literal)
Verify the validity of a given language tag.
|
public static final Language THE_INSTANCE
public void checkValid(String literal)
literal - the language tag to verify.InvalidParameterException - if the tag is invalid or if there is a warning for it.
If the issue is just a warning, the error message starts with "Warning: ".Copyright © 2020. All rights reserved.