public native override hash() as Long
Returns a content-based hash compatible with String equality.
A mutable string used as a hash key must not be modified while it is stored in a HashMap or HashSet.
Hash of the current UTF-8 text content.
first = String("Klyn")
second = String("Klyn")
assert first.hash() == second.hash()