equals
Equality considers:
same lower/upper bounds and inclusivity flags,
same defaultReturnValue,
equality of the
itemslist andweightslist.
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.