All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.squarespace.cldr.codegen.reader.NumberData Maven / Gradle / Ivy

There is a newer version: 0.0.26
Show newest version
package com.squarespace.cldr.codegen.reader;

import java.util.List;
import java.util.Map;

import com.squarespace.cldr.codegen.LocaleID;
import com.squarespace.cldr.numbers.NumberPattern;


/**
 * Container to hold CLDR number data during code generation.
 */
public class NumberData {

  private LocaleID id;

  public String decimal;
  public String group;
  public String percent;
  public String minus;
  public String plus;
  public String exponential;
  public String superscriptingExponent;
  public String perMille;
  public String infinity;
  public String nan;
  public String currencyDecimal;
  public String currencyGroup;
  public int minimumGroupingDigits;

  public List decimalFormatStandard;
  public List percentFormatStandard;
  public List currencyFormatStandard;
  public List currencyFormatAccounting;

  public Map> decimalFormatShort;
  public Map> decimalFormatLong;
  public Map> currencyFormatShort;

  public Map currencyUnitPattern;

  // MAPS BELOW KEYED BY CURRENCY CODE

  // Currency symbols in this locale, e.g. '$' in en-US or 'US$' in fr
  public Map currencySymbols;
  public Map narrowCurrencySymbols;
  
  // Default currency display name, e.g. as proper name "US Dollar"
  public Map currencyDisplayName;

  // Pluralized currency display names in this locale, e.g. "US dollar" or "US dollars"
  public Map> currencyDisplayNames;

  public NumberData() {
  }

  public void setID(LocaleID value) {
    this.id = value;
  }

  public LocaleID id() {
    return id;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy