Rolling Friction

WeakReferences are ok in general, that's not the problem. But you should stay with a hash map to look up the coefficient via Map.get(key). E.g. you could make an innerclass containing the two weak references with appropriate hashCode and equals methods…

Added to my todo list. :-p



darkfrog