public PeriodFormatter withLocale(Locale locale){
  if (locale == getLocale() || (locale != null && locale.equals(getLocale()))) {
    return this;
  }
  return new PeriodFormatter(iPrinter,iParser,locale,iParseType);
}

public PeriodFormatter withLocale ( Locale locale ) { if ( locale == getLocale ( ) || ( locale != null && locale . equals ( getLocale ( ) ) ) ) { return this ; } return new PeriodFormatter ( iPrinter , iParser , locale , iParseType ) ; }
returns a new formatter with a different locale that will be used for printing and parsing . < p > a periodformatter is immutable , so a new instance is returned , and the original is unaltered and still usable .
