altoslib: Store common frequencies in library version-independent form
authorKeith Packard <keithp@keithp.com>
Fri, 13 May 2016 02:13:05 +0000 (19:13 -0700)
committerKeith Packard <keithp@keithp.com>
Fri, 13 May 2016 02:13:05 +0000 (19:13 -0700)
commitb13037fad0905c5933d1ff579122ba1357b02eea
tree083d1950a161b05e29ee59da2b1a7de16f148bb5
parent2f4903f903223312d0a3a03dfd413059f24a07f5
altoslib: Store common frequencies in library version-independent form

Serializable Objects in java are very specific to the class being
serialized. As we bump the name of the library on a regular basis to
note API/ABI issues, this mean a saved a Serializable object in
the preferences database will fail to load across library version
upgrades.

The saved tracker state and saved common frequencies were the only
objects saved in this form; this patch adds infrastructure for writing
objects in a version-independent form, and then adds support for
saving frequencies in that form.

Signed-off-by: Keith Packard <keithp@keithp.com>
altoslib/AltosFrequency.java
altoslib/AltosHashSet.java [new file with mode: 0644]
altoslib/AltosParse.java
altoslib/AltosPreferences.java
altoslib/Makefile.am