org.outerj.xreporter.datatype.type
Interface FormatCache
- All Known Implementing Classes:
- Column
- public interface FormatCache
Cache date or number formatting patterns. The rationale behind this is that Formatting patterns
can be expensive to create. Using OptimizeIt on XReporter revealed that before these were cached,
70% of the time of the output generation was taken by formatting the data, most of which was in
return spent on the creation of the format objects.
Note that formatting pattern objects are usually not thread-safe, so objects implementing this interface
should not be used by more than one thread at a time.
Method Summary |
java.lang.Object |
get()
|
void |
store(java.lang.Object format)
|
get
public java.lang.Object get()
store
public void store(java.lang.Object format)