Package org.apache.abdera.i18n.rfc4646
Class Range
java.lang.Object
org.apache.abdera.i18n.rfc4646.Range
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<org.apache.abdera.i18n.rfc4646.SubtagSet>,Iterable<Subtag>
Deprecated.
This API is deprecated as Apache Abdera is a retired project since 2017.
A language range used for matching language tags
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Create a Language-RangeDeprecated.Create a Language-RangeDeprecated.Create a Language-Range from a Lang tagDeprecated.Create a Language-Range from a Lang tag -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Append a subtag to the rangeDeprecated.Append a wildcard subtag to the rangeasList()Deprecated.clone()Deprecated.Copy this rangeintcompareTo(org.apache.abdera.i18n.rfc4646.SubtagSet o) Deprecated.booleanDeprecated.booleancontains(String tag, Subtag.Type type) Deprecated.booleanDeprecated.intcount()Deprecated.booleanDeprecated.String[]Deprecated.Filter the given set of lang tags.static String[]Deprecated.Filter the given set of lang tags.static Lang[]Deprecated.Filter the given set of lang tags.Lang[]Deprecated.Filter the given set of lang tags.get(int index) Deprecated.inthashCode()Deprecated.booleanisBasic()Deprecated.True if this range is a basic rangebooleanisValid()Deprecated.iterator()Deprecated.intlength()Deprecated.booleanDeprecated.True if the lang tag matches this rangebooleanDeprecated.True if the lang tag matches this rangestatic booleanDeprecated.True if the lang tag matches the range.static booleanDeprecated.True if the lang tag matches the range.static booleanDeprecated.True if the lang tag matches the range.static booleanDeprecated.True if the lang tag matches the range.booleanDeprecated.True if the lang tag matches this rangebooleanDeprecated.True if the lang tag matches this rangestatic RangeDeprecated.Parse the language-rangestatic RangeDeprecated.Parse the language-rangeSubtag[]toArray()Deprecated.Deprecated.Create a basic language-range from this rangetoString()Deprecated.Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
Range
Deprecated.Create a Language-Range- Parameters:
range- The language-rangeextended- true if this is an extended language range
-
Range
Deprecated.Create a Language-Range -
Range
Deprecated.Create a Language-Range from a Lang tag -
Range
Deprecated.Create a Language-Range from a Lang tag- Parameters:
lang- The language tagextended- true if this is an extended language-range
-
-
Method Details
-
append
Deprecated.Append a subtag to the range -
appendWildcard
Deprecated.Append a wildcard subtag to the range -
clone
Deprecated.Copy this range -
toBasicRange
Deprecated.Create a basic language-range from this range -
isBasic
public boolean isBasic()Deprecated.True if this range is a basic range -
matches
Deprecated.True if the lang tag matches this range -
matches
Deprecated.True if the lang tag matches this range- Parameters:
lang- The language tageextended- True if extended matching rules should be used
-
matches
Deprecated.True if the lang tag matches this range -
matches
Deprecated.True if the lang tag matches this range- Parameters:
lang- The language tageextended- True if extended matching rules should be used
-
filter
Deprecated.Filter the given set of lang tags. Return an array of matching tags -
filter
Deprecated.Filter the given set of lang tags. Return an array of matching tags -
filter
Deprecated.Filter the given set of lang tags. Return an array of matching tags -
filter
Deprecated.Filter the given set of lang tags. Return an array of matching tags -
matches
Deprecated.True if the lang tag matches the range.- Parameters:
range- The language-rangelang- The language tagextended- true to use extended match rules
-
matches
Deprecated.True if the lang tag matches the range.- Parameters:
range- The language-rangelang- The language tagextended- true to use extended match rules
-
matches
Deprecated.True if the lang tag matches the range.- Parameters:
range- The language-rangelang- The language tagextended- true to use extended match rules
-
matches
Deprecated.True if the lang tag matches the range.- Parameters:
range- The language-rangelang- The language tagextended- true to use extended match rules
-
parse
Deprecated.Parse the language-range -
parse
Deprecated.Parse the language-range- Parameters:
range- The language-rangeextended- true to use extended language rules
-
toString
Deprecated. -
iterator
Deprecated. -
contains
Deprecated. -
contains
Deprecated. -
contains
Deprecated. -
length
public int length()Deprecated. -
isValid
public boolean isValid()Deprecated. -
count
public int count()Deprecated. -
get
Deprecated. -
hashCode
public int hashCode()Deprecated. -
equals
Deprecated. -
toArray
Deprecated. -
asList
Deprecated. -
compareTo
public int compareTo(org.apache.abdera.i18n.rfc4646.SubtagSet o) Deprecated.- Specified by:
compareToin interfaceComparable<org.apache.abdera.i18n.rfc4646.SubtagSet>
-