public abstract class AbstractISOCodeMapper
extends java.lang.Object
| Constructor and Description |
|---|
AbstractISOCodeMapper()
Constructs an empty mapper object.
|
AbstractISOCodeMapper(int a_maxTextLength)
Constructs an empty mapper object.
|
AbstractISOCodeMapper(java.lang.String a_ISOCode)
Constructs a new mapper object that uses the default Locale to translate its ISO code.
|
AbstractISOCodeMapper(java.lang.String a_ISOCode,
int a_maxTextLength)
Constructs a new mapper that uses the default Locale to translate its ISO code.
|
AbstractISOCodeMapper(java.lang.String a_ISOCode,
int a_maxTextLength,
java.util.Locale a_locale)
Constructs a new mapper object that uses a specific Locale to translate its ISO code.
|
AbstractISOCodeMapper(java.lang.String a_ISOCode,
java.util.Locale a_locale)
Constructs a new mapper object that uses a specific Locale to translate its ISO code.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object a_object)
Returns if the ISO codes of two mapper objects are equal.
|
java.lang.String |
getISOCode()
Returns the ISO country code stored in this CountryMapper object.
|
int |
hashCode()
Returns the hash code of the ISO country code.
|
java.lang.String |
toString()
Returns the localised name of the ISO country code of this
CountryMapper object.
|
public AbstractISOCodeMapper()
public AbstractISOCodeMapper(int a_maxTextLength)
a_maxTextLength - the maximum length of the toString() outputpublic AbstractISOCodeMapper(java.lang.String a_ISOCode,
int a_maxTextLength)
throws java.lang.IllegalArgumentException
a_ISOCode - a two-letter ISO codea_maxTextLength - the maximum length of the toString() outputjava.lang.IllegalArgumentException - if the ISO code does not have two characterspublic AbstractISOCodeMapper(java.lang.String a_ISOCode)
throws java.lang.IllegalArgumentException
a_ISOCode - a two-letter ISO codejava.lang.IllegalArgumentException - if the ISO code does not have two characterspublic AbstractISOCodeMapper(java.lang.String a_ISOCode,
java.util.Locale a_locale)
throws java.lang.IllegalArgumentException
a_ISOCode - a two-letter ISO codea_locale - a Localejava.lang.IllegalArgumentException - if the ISO code does not have two characterspublic AbstractISOCodeMapper(java.lang.String a_ISOCode,
int a_maxTextLength,
java.util.Locale a_locale)
throws java.lang.IllegalArgumentException
a_ISOCode - a two-letter ISO codea_locale - a Localea_maxTextLength - the maximum length of the toString() outputjava.lang.IllegalArgumentException - if the ISO code does not have two characterspublic final java.lang.String getISOCode()
public final boolean equals(java.lang.Object a_object)
equals in class java.lang.Objecta_object - an Objectpublic final int hashCode()
hashCode in class java.lang.Objectpublic final java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2023. All rights reserved.