klyn.String.hash
method
public native override hash() as Long
Description

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.

Returns

Hash of the current Unicode text content.

Example
first = String("Klyn")
second = String("Klyn")
assert first.hash() == second.hash()