public class LanguageTag
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
primaryTag |
protected java.lang.String |
subTags |
protected java.lang.String |
tag |
Modifier | Constructor and Description |
---|---|
protected |
LanguageTag() |
|
LanguageTag(HttpHeaderReader reader) |
|
LanguageTag(java.lang.String header) |
|
LanguageTag(java.lang.String primaryTag,
java.lang.String subTags) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object object) |
java.util.Locale |
getAsLocale() |
java.lang.String |
getPrimaryTag() |
java.lang.String |
getSubTags() |
java.lang.String |
getTag() |
int |
hashCode() |
boolean |
isCompatible(java.util.Locale tag) |
protected void |
parse(java.lang.String languageTag) |
java.lang.String |
toString() |
static LanguageTag |
valueOf(java.lang.String s) |
protected java.lang.String tag
protected java.lang.String primaryTag
protected java.lang.String subTags
protected LanguageTag()
public LanguageTag(java.lang.String primaryTag, java.lang.String subTags)
public LanguageTag(java.lang.String header) throws java.text.ParseException
java.text.ParseException
public LanguageTag(HttpHeaderReader reader) throws java.text.ParseException
java.text.ParseException
public static LanguageTag valueOf(java.lang.String s) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public final boolean isCompatible(java.util.Locale tag)
public final java.util.Locale getAsLocale()
protected final void parse(java.lang.String languageTag) throws java.text.ParseException
java.text.ParseException
public final java.lang.String getTag()
public final java.lang.String getPrimaryTag()
public final java.lang.String getSubTags()
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2016 Oracle Corporation. All Rights Reserved.