@Override
    public int compareTo(final Triple<L, M, R> other) {
      return new CompareToBuilder().append(getLeft(), other.getLeft())
          .append(getMiddle(), other.getMiddle())
          .append(getRight(), other.getRight()).toComparison();
    }
@ Override public int compareTo ( final Triple < L , M , R > other ) { return new CompareToBuilder ( ) . append ( getLeft ( ) , other . getLeft ( ) ) . append ( getMiddle ( ) , other . getMiddle ( ) ) . append ( getRight ( ) , other . getRight ( ) ) . toComparison ( ) ; }
<p>Compares the triple based on the left element, followed by the middle element,
finally the right element.
The types must be {@code Comparable}.</p>

@param other  the other triple, not null
@return negative if this is less, zero if equal, positive if greater