jdsullivan
Joined 14 years ago
Karma
48
Submissions
6
Member since
Feb 1
Joined 14 years ago
In retrospect, it's a bit surprising they never enhanced it to operate hands free like this - it was made by the same folks as the segway and feels like a natural evolution.
String.hashCode explicitly guarantees consistency across processes by specifying how the hash code is computed, this is something that can be safely relied upon. (Same for Integer, Long, Float and Double)
It's true that relying on hashCode to remain stable across arbitrary objects is brittle, but this is not the case for String.