equal_to


Description:

public abstract bool equal_to (G object)

Compares this object with the specified object. This defines the equivalence relation between them.

In other words:

  • It must be reflexive: for all objects `a` it holds that

    `a.equal_to(a)`.

  • It must be symmetric: for all objects `a` and `b` if

    `a.equal_to(b)` then `b.equal_to(a)`.

  • It must be transitive: if `a.equal_to(b)` and `b.equal_to(c)` then

    `a.equal_to(c)`.

Note:

Relationship must not change during lifetime of an object.

Parameters:

object

Object this objest is compared with

Returns:

true if objects are equal