New Type Support

This activity creates support for new types introduced into the Java language. For JDK 1.4, three types that appear to be of interest were introduced: Currency, LinkedHashMap, and LinkedHashSet.

General Issues


The strategy for Currency is to store the currency code persistently as a String. This can be done in a CurrencyTranscriber in which the output sent to the stream is the result of calling getCurrencyCode on the instance. Similarly, when reading an instance from the stream, the static method Currency.newInstance(String) that takes the currency code can be called.


The strategy for LinkedHashMap is similar to HashMap.


The strategy for LinkedHashSet is similar to HashSet.

NewTypeSupport (last edited 2009-09-20 23:08:39 by localhost)