net.sourceforge.atunes.kernel.modules.state.beans
Class LocaleBean

java.lang.Object
  extended by net.sourceforge.atunes.kernel.modules.state.beans.LocaleBean

public class LocaleBean
extends java.lang.Object

Bean for java.util.Locale


Constructor Summary
LocaleBean(java.util.Locale locale)
          Constructs LocaleBean from a given java.util.Locale
LocaleBean(java.lang.String language, java.lang.String country)
          Instantiates a new locale bean.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getCountry()
          Gets the country.
 java.lang.String getLanguage()
          Gets the language.
 java.util.Locale getLocale()
          Get suitable java.util.Locale object
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocaleBean

public LocaleBean(java.util.Locale locale)
Constructs LocaleBean from a given java.util.Locale

Parameters:
locale - locale

LocaleBean

@ConstructorProperties(value={"language","country"})
public LocaleBean(java.lang.String language,
                                        java.lang.String country)
Instantiates a new locale bean.

Parameters:
language - the language
country - the country
Method Detail

getCountry

public java.lang.String getCountry()
Gets the country.

Returns:
the country

getLanguage

public java.lang.String getLanguage()
Gets the language.

Returns:
the language

getLocale

public java.util.Locale getLocale()
Get suitable java.util.Locale object

Returns:
A suitable java.util.Locale object

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


Copyright © 2006-2008 The aTunes Team. All Rights Reserved.