compares the triple based on the left element , followed by the middle element , finally the right element . the types must be comparable . concode_field_sep long serialVersionUID concode_field_sep R getRight concode_elem_sep M getMiddle concode_elem_sep int hashCode concode_elem_sep Triple<L,M,R> of concode_elem_sep boolean equals concode_elem_sep String toString concode_elem_sep String toString concode_elem_sep L getLeft
int function ( final Triple < L , M , R > arg0 ) { return new CompareToBuilder ( ) . append ( getLeft ( ) , arg0 . getLeft ( ) ) . append ( getMiddle ( ) , arg0 . getMiddle ( ) ) . append ( getRight ( ) , arg0 . getRight ( ) ) . toComparison ( ) ; }