Hello,

I checked the implementation of GenericDataModel for adding and removing
preferences after instantiation. Those methods (setPreference(long, long,
float) and removePreference(long, long)) throw
UnsupportedOperationException s. I'd like to know whether there is an
important reason for not altering content of a GenericDataModel, since in
our application data can fit into memory and we want our data to be up to
date. DataModel interface have those methods, and GenericDataModel is just
an in-memory implementation of it.

Would it be ok if I write an implementation of DataModel like
GenericDataModel, but with setPreference and removePreference methods not
throwing exceptions?

Thanks,
Ceyhun Can ULKER

Reply via email to