IEquatable, IComparable implementation.