@ Override public int compareTo ( Flow otherFlow ) { if ( otherFlow == null ) { return - 1 ; } return new CompareToBuilder ( ) . append ( this . key , otherFlow . getFlowKey ( ) ) . toComparison ( ) ; }
Compares two Flow objects on the basis of their FlowKeys