org.codehaus.plexus.i18n
Class I18NTokenizer.AcceptLanguage

java.lang.Object
  extended byorg.codehaus.plexus.i18n.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
(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
private I18NTokenizer.AcceptLanguage()
           
 
Method Summary
 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

I18NTokenizer.AcceptLanguage

private I18NTokenizer.AcceptLanguage()
Method Detail

compareTo

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