equals

open operator override fun equals(other: Any?): Boolean

Equality considers:

  • same lower/upper bounds and inclusivity flags,

  • same defaultReturnValue,

  • equality of the items list and weights list.

Two WeightedSortedList instances with identical contents and the same bounds are equal.

Don't rely on the result value, it might be changed in the future.