Rx\Notification\OnNextNotification::equals PHP Method

equals() public method

public equals ( $other )
    public function equals($other)
    {
        if ($other instanceof $this && is_object($this->value) && is_object($other->value)) {
            if ($this->value instanceof $other->value && method_exists($this->value, "equals")) {
                return $this->value->equals($other->value);
            }
        }
        return (string) $this === (string) $other;
    }