org.apache.abdera.i18n.lang
Class Lang

java.lang.Object
  extended by org.apache.abdera.i18n.lang.Lang
All Implemented Interfaces:
Serializable, Cloneable, Iterable<String>

Deprecated.

public class Lang
extends Object
implements Iterable<String>, Serializable, Cloneable

rfc3066 implementation. This has been deprecated. Use org.apache.abdera.i18n.rfc4646.Lang instead

See Also:
Lang, Serialized Form

Field Summary
static Lang ANY
          Deprecated.  
protected  Locale locale
          Deprecated.  
protected  String[] tags
          Deprecated.  
 
Constructor Summary
Lang(Locale locale)
          Deprecated.  
Lang(String... tags)
          Deprecated.  
Lang(String tag)
          Deprecated.  
 
Method Summary
 boolean equals(Object obj)
          Deprecated.  
 Locale getLocale()
          Deprecated.  
 String getPrimary()
          Deprecated.  
 String getSubtag(int n)
          Deprecated.  
 int getSubtagCount()
          Deprecated.  
 int hashCode()
          Deprecated.  
 Iterator<String> iterator()
          Deprecated.  
 boolean matches(Lang range)
          Deprecated.  
static boolean matches(Lang lang, Lang range)
          Deprecated.  
static boolean matches(Lang lang, String range)
          Deprecated.  
 boolean matches(String range)
          Deprecated.  
 String toString()
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ANY

public static final Lang ANY
Deprecated. 

tags

protected final String[] tags
Deprecated. 

locale

protected final Locale locale
Deprecated. 
Constructor Detail

Lang

public Lang(Locale locale)
Deprecated. 

Lang

public Lang(String tag)
Deprecated. 

Lang

public Lang(String... tags)
Deprecated. 
Method Detail

getPrimary

public String getPrimary()
Deprecated. 

getSubtag

public String getSubtag(int n)
Deprecated. 

getSubtagCount

public int getSubtagCount()
Deprecated. 

getLocale

public Locale getLocale()
Deprecated. 

toString

public String toString()
Deprecated. 
Overrides:
toString in class Object

matches

public static boolean matches(Lang lang,
                              String range)
Deprecated. 

matches

public static boolean matches(Lang lang,
                              Lang range)
Deprecated. 

matches

public boolean matches(String range)
Deprecated. 

matches

public boolean matches(Lang range)
Deprecated. 

hashCode

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

equals

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

iterator

public Iterator<String> iterator()
Deprecated. 
Specified by:
iterator in interface Iterable<String>


Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.