@ Override public int compareTo ( Object other ) { if ( other == null ) { return - 1 ; } FlowKey otherKey = ( FlowKey ) other ; return new CompareToBuilder ( ) . appendSuper ( super . compareTo ( other ) ) . append ( getEncodedRunId ( ) , otherKey . getEncodedRunId ( ) ) . toComparison ( ) ; }
Compares two FlowKey objects on the basis of their cluster userName appId and encodedRunId