Class Range

    • Constructor Detail

      • Range

        public Range​(String range,
                     boolean extended)
        Deprecated.
        Create a Language-Range
        Parameters:
        range - The language-range
        extended - true if this is an extended language range
      • Range

        public Range​(String range)
        Deprecated.
        Create a Language-Range
      • Range

        public Range​(Lang lang)
        Deprecated.
        Create a Language-Range from a Lang tag
      • Range

        public Range​(Lang lang,
                     boolean extended)
        Deprecated.
        Create a Language-Range from a Lang tag
        Parameters:
        lang - The language tag
        extended - true if this is an extended language-range
    • Method Detail

      • append

        public Range append​(Subtag subtag)
        Deprecated.
        Append a subtag to the range
      • appendWildcard

        public Range appendWildcard()
        Deprecated.
        Append a wildcard subtag to the range
      • clone

        public Range clone()
        Deprecated.
        Copy this range
      • toBasicRange

        public 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

        public boolean matches​(String lang)
        Deprecated.
        True if the lang tag matches this range
      • matches

        public boolean matches​(String lang,
                               boolean extended)
        Deprecated.
        True if the lang tag matches this range
        Parameters:
        lang - The language tage
        extended - True if extended matching rules should be used
      • matches

        public boolean matches​(Lang lang)
        Deprecated.
        True if the lang tag matches this range
      • matches

        public boolean matches​(Lang lang,
                               boolean extended)
        Deprecated.
        True if the lang tag matches this range
        Parameters:
        lang - The language tage
        extended - True if extended matching rules should be used
      • filter

        public Lang[] filter​(Lang... lang)
        Deprecated.
        Filter the given set of lang tags. Return an array of matching tags
      • filter

        public String[] filter​(String... lang)
        Deprecated.
        Filter the given set of lang tags. Return an array of matching tags
      • filter

        public static Lang[] filter​(String range,
                                    Lang... lang)
        Deprecated.
        Filter the given set of lang tags. Return an array of matching tags
      • filter

        public static String[] filter​(String range,
                                      String... lang)
        Deprecated.
        Filter the given set of lang tags. Return an array of matching tags
      • matches

        public static boolean matches​(String range,
                                      Lang lang,
                                      boolean extended)
        Deprecated.
        True if the lang tag matches the range.
        Parameters:
        range - The language-range
        lang - The language tag
        extended - true to use extended match rules
      • matches

        public static boolean matches​(String range,
                                      Lang lang)
        Deprecated.
        True if the lang tag matches the range.
        Parameters:
        range - The language-range
        lang - The language tag
        extended - true to use extended match rules
      • matches

        public static boolean matches​(String range,
                                      String lang,
                                      boolean extended)
        Deprecated.
        True if the lang tag matches the range.
        Parameters:
        range - The language-range
        lang - The language tag
        extended - true to use extended match rules
      • matches

        public static boolean matches​(String range,
                                      String lang)
        Deprecated.
        True if the lang tag matches the range.
        Parameters:
        range - The language-range
        lang - The language tag
        extended - true to use extended match rules
      • parse

        public static Range parse​(String range)
        Deprecated.
        Parse the language-range
      • parse

        public static Range parse​(String range,
                                  boolean extended)
        Deprecated.
        Parse the language-range
        Parameters:
        range - The language-range
        extended - true to use extended language rules
      • contains

        public boolean contains​(Subtag subtag)
        Deprecated.
      • contains

        public boolean contains​(String tag)
        Deprecated.
      • length

        public int length()
        Deprecated.
      • isValid

        public boolean isValid()
        Deprecated.
      • count

        public int count()
        Deprecated.
      • get

        public Subtag get​(int index)
        Deprecated.
      • hashCode

        public int hashCode()
        Deprecated.
        Overrides:
        hashCode in class Object
      • equals

        public boolean equals​(Object obj)
        Deprecated.
        Overrides:
        equals in class Object
      • toArray

        public Subtag[] toArray()
        Deprecated.
      • asList

        public List<Subtag> asList()
        Deprecated.
      • compareTo

        public int compareTo​(org.apache.abdera.i18n.rfc4646.SubtagSet o)
        Deprecated.
        Specified by:
        compareTo in interface Comparable<org.apache.abdera.i18n.rfc4646.SubtagSet>