equals

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

Returns whether this stack equals the given other value.

For two stacks to be considered equal, their sizes, capacities, and contents must all be equal and appear in the same order.

Return

Whether this stack is equal to the given value.

Parameters

other

Other value to test this stack against.