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

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.

Returns

Hash of the current UTF-8 text content.

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