public Format[] getFormats() {
        Format[] resultArray = new Format[maxOffset + 1];
        System.arraycopy(formats, 0, resultArray, 0, maxOffset + 1);
        return resultArray;
    }
public Format [ ] getFormats ( ) { Format [ ] resultArray = new Format [ maxOffset + 1 ] ; System . arraycopy ( formats , 0 , resultArray , 0 , maxOffset + 1 ) ; return resultArray ; }
Gets the formats used for the format elements in the
previously set pattern string.
The order of formats in the returned array corresponds to
the order of format elements in the pattern string.
<p>
Since the order of format elements in a pattern string often
changes during localization, it's generally better to use the
{@link #getFormatsByArgumentIndex getFormatsByArgumentIndex}
method, which assumes an order of formats corresponding to the
order of elements in the <code>arguments</code> array passed to
the <code>format</code> methods or the result array returned by
the <code>parse</code> methods.

@return the formats used for the format elements in the pattern