Class CurrencyMetaInfo.CurrencyInfo

  • Enclosing class:
    CurrencyMetaInfo

    public static final class CurrencyMetaInfo.CurrencyInfo
    extends java.lang.Object
    Represents a complete currency info record listing the region, currency, from and to dates, and priority. Use CurrencyMetaInfo.currencyInfo(CurrencyFilter) for a list of info objects matching the filter.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.String code
      The three-letter ISO currency code.
      long from
      Date on which the currency was first officially used in the region.
      int priority
      Preference order of currencies being used at the same time in the region.
      java.lang.String region
      Region code where currency is used.
      private boolean tender  
      long to
      Date at which the currency stopped being officially used in the region.
    • Constructor Summary

      Constructors 
      Constructor Description
      CurrencyInfo​(java.lang.String region, java.lang.String code, long from, long to, int priority)
      Deprecated.
      CurrencyInfo​(java.lang.String region, java.lang.String code, long from, long to, int priority, boolean tender)
      Deprecated.
      This API is ICU internal only.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isTender()
      Determine whether or not this currency was once used, is used, or will be used as tender in this region.
      java.lang.String toString()
      Returns a string representation of this object, 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 java.lang.String region
        Region code where currency is used.
      • code

        public final java.lang.String code
        The three-letter ISO currency code.
      • from

        public final long from
        Date on which the currency was first officially used in the region. This is midnight at the start of the first day on which the currency was used, GMT. If there is no date, this is Long.MIN_VALUE;
      • to

        public final long to
        Date at which the currency stopped being officially used in the region. This is one millisecond before midnight at the end of the last day on which the currency was used, GMT. If there is no date, this is Long.MAX_VALUE.
      • priority

        public final int 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.
      • tender

        private final boolean tender
    • Constructor Detail

      • CurrencyInfo

        @Deprecated
        public CurrencyInfo​(java.lang.String region,
                            java.lang.String code,
                            long from,
                            long to,
                            int priority,
                            boolean tender)
        Deprecated.
        This API is ICU internal only.
        Constructs a currency info.
    • Method Detail

      • toString

        public java.lang.String toString()
        Returns a string representation of this object, useful for debugging.
        Overrides:
        toString in class java.lang.Object
        Returns:
        A string representation of this object.
      • isTender

        public boolean isTender()
        Determine whether or not this currency was once used, is used, or will be used as tender in this region.