fun equals(obj: Any): Boolean { if (obj === this) { return true } if (obj is CharSet == false) { return false } val other: CharSet = obj as CharSet return set.equals(other.set) }
< p > Compares two CharSet objects , returning true if they represent exactly the same set of characters defined in the same way. < /p > < p > The two sets < code > abc < /code > and < code > a-c < /code > are < i > not < /i > equal according to this method. < /p >