code: public void setPatternForCurrencySpacing(int itemType, boolean beforeCurrency, String pattern) {
          if (itemType < CURRENCY_SPC_CURRENCY_MATCH ||
              itemType > CURRENCY_SPC_INSERT ) {
              throw new IllegalArgumentException("unknown currency spacing: " + itemType);
          }
          if (beforeCurrency) {
              currencySpcBeforeSym[itemType] = pattern;
          } else {
              currencySpcAfterSym[itemType] = pattern;
          }
      }
docs: <strong>[icu]</strong> Sets the indicated currency spacing pattern or value. See {@link
  #getPatternForCurrencySpacing} for more information.
  
  <p>Values for currency match and surrounding match must be {@link
  android.icu.text.UnicodeSet} patterns. Values for insert can be any string.
  
  <p><strong>Note:</strong> ICU4J does not currently use this information.
  
  @param itemType one of CURRENCY_SPC_CURRENCY_MATCH, CURRENCY_SPC_SURROUNDING_MATCH
  or CURRENCY_SPC_INSERT
  @param beforeCurrency true if the pattern is for before the currency symbol.
  false if the pattern is for after it.
  @param  pattern string to override current setting; can be null.
  @see #getPatternForCurrencySpacing(int, boolean)