public native override hash() as Long
Returns a content-based hash compatible with String equality.
Immutability keeps this hash stable when a String is used as a key in a HashMap or HashSet.
Hash of the current Unicode text content.
first = String("Klyn")
second = String("Klyn")
assert first.hash() == second.hash()