com.ibm.icu.text
Class CurrencyMetaInfo.CurrencyInfo

java.lang.Object
  extended by com.ibm.icu.text.CurrencyMetaInfo.CurrencyInfo
Enclosing class:
CurrencyMetaInfo

public static final class CurrencyMetaInfo.CurrencyInfo
extends Object

Represents a complete currency info record listing the region, currency, from and to dates, and priority.

Status:
Draft ICU 4.4.

Field Summary
 String code
          The three-letter ISO currency code.
 long from
          Date on which the currency was first officially used in the region.
 short priority
          Preference order of currencies being used at the same time in the region.
 String region
          Region code where currency is used.
 long to
          Date at which the currency stopped being officially used in the region.
 
Constructor Summary
CurrencyMetaInfo.CurrencyInfo(String region, String code, long from, long to, int priority)
          Constructs a currency info.
 
Method Summary
 String toString()
          Returns a string useful for debugging.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

region

public final String region
Region code where currency is used.

Status:
Draft ICU 4.4.

code

public final String code
The three-letter ISO currency code.

Status:
Draft ICU 4.4.

from

public final long from
Date on which the currency was first officially used in the region. If there is no date, this is Long.MIN_VALUE;

Status:
Draft ICU 4.4.

to

public final long to
Date at which the currency stopped being officially used in the region. If there is no date, this is Long.MAX_VALUE;

Status:
Draft ICU 4.4.

priority

public final short priority
Preference order of currencies being used at the same time in the region. Lower values are preferred (generally, this is a transition from an older to a newer currency). Priorities within a single country are unique.

Status:
Draft ICU 4.4.
Constructor Detail

CurrencyMetaInfo.CurrencyInfo

public CurrencyMetaInfo.CurrencyInfo(String region,
                                     String code,
                                     long from,
                                     long to,
                                     int priority)
Constructs a currency info.

Parameters:
region - region code
code - currency code
from - start date in milliseconds
to - end date in milliseconds
priority - priority value, 0 is highest priority, increasing values are lower
Status:
Draft ICU 4.4.
Method Detail

toString

public String toString()
Returns a string useful for debugging.

Overrides:
toString in class Object
Status:
Draft ICU 4.4.


Copyright (c) 2011 IBM Corporation and others.