Instrument a class for RockSack compatibility. Nothing we do changes the base functionality
or should affect operation of the original class. We need to ensure that it is Serializable
and that it implements a compareTo method to order it in the data store. Note that most
Java classes do this by default, but new ad-hoc classes may not. We rely on user adding
annotations for
CompareAndSerialize
and
ComparisonOrderField
(order=n) and
ComparisonOrderMethod
(order=n)
where n is the order of the key element in the overall collection that will order instances of the class.
We will create a compareTo method based on this order.