Hi all,
I'm trying to figure out what the correct way of using a
PreferenceTransform is.
Having looked into the JavaDoc's I've got something which seems to
generate ok results, not quite sure whether this is correct though.
Would appreciate a comment on if this actually is the correct way to
You are using it correctly.
I think the API is a little bad in that the method is only declared on the
abstract superclass of common implementations, and not in the interfaces.
So, your cast is needed, but maybe shouldn't be.
In general, I would advise you to avoid preference transforms. They