This is no different from the signature of the object equals...
public boolean equals(Integer otherInteger)
... or implementationcompareTo (where Tdefined as Long).
public int compareTo(Long otherObject)
, , TreeValue, . TreeValue -like, .
. , , , , , .