code: public GlobalizationPreferences setBreakIterator(int type, BreakIterator iterator) {
          if (type < BI_CHARACTER || type >= BI_LIMIT) {
              throw new IllegalArgumentException("Illegal break iterator type");
          }
          if (isFrozen()) {
              throw new UnsupportedOperationException("Attempt to modify immutable object");
          }
          if (breakIterators == null)
              breakIterators = new BreakIterator[BI_LIMIT];
          breakIterators[type] = (BreakIterator) iterator.clone(); // clone for safety
          return this;
      }
docs: Explicitly set the break iterator for this object.
  
  @param type break type - BI_CHARACTER or BI_WORD, BI_LINE, BI_SENTENCE, BI_TITLE
  @param iterator a break iterator
  @return this, for chaining
  @hide draft / provisional / internal are hidden on Android