equals

open fun equals(obj: Any): Boolean

Returns true if obj is a MutableClock that uses the same time-zone as this clock and has shared updates with this clock.

Two clocks with shared updates always have the same instant, and all updates applied to either clock affect both clocks.

A deserialized MutableClock is not equal to the original clock that was serialized, since the two clocks do not have shared updates.

Return

true if this is equal to the other clock

Parameters

obj

the object to check, null returns false