public int CompareTo(ComparablePair <T, U> other) { return(First.CompareTo(other.First)); }
public bool Equals(ComparablePair <T, U> that) { return(this.Fst.Equals(that.Fst) && this.Snd.Equals(that.Snd)); }
// Lexicographic ordering public int CompareTo(ComparablePair <T, U> that) { int firstCmp = this.Fst.CompareTo(that.Fst); return(firstCmp != 0 ? firstCmp : this.Snd.CompareTo(that.Snd)); }
public int CompareTo(ComparablePair <TK, TV> other) { return(Key.CompareTo(other.Key)); }
public int CompareTo(ComparablePair <T, U> other) { return(Item1.CompareTo(other.Item1)); }
public int CompareTo(object obj) { ComparablePair <T, U> castedObj = (ComparablePair <T, U>)obj; return(this.Item1.CompareTo(castedObj.Item1)); }