Class I18NTokenizer.AcceptLanguage

  • All Implemented Interfaces:
    java.lang.Comparable
    Enclosing class:
    I18NTokenizer

    private class I18NTokenizer.AcceptLanguage
    extends java.lang.Object
    implements java.lang.Comparable
    Struct representing an element of the HTTP Accept-Language header.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) java.util.Locale locale
      The language and country.
      (package private) java.lang.Float quality
      The quality of our locale (as values approach 1.0, they indicate increased user preference).
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private AcceptLanguage()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compareTo​(java.lang.Object acceptLang)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • locale

        java.util.Locale locale
        The language and country.
      • quality

        java.lang.Float quality
        The quality of our locale (as values approach 1.0, they indicate increased user preference).
    • Constructor Detail

      • AcceptLanguage

        private AcceptLanguage()
    • Method Detail

      • compareTo

        public final int compareTo​(java.lang.Object acceptLang)
        Specified by:
        compareTo in interface java.lang.Comparable