@ Override public int compareTo ( Object other ) { if ( other == null ) { return - 1 ; } TaskKey otherKey = ( TaskKey ) other ; return new CompareToBuilder ( ) . appendSuper ( super . compareTo ( otherKey ) ) . append ( this . taskId , otherKey . getTaskId ( ) ) . toComparison ( ) ; }
Compares two TaskKey objects on the basis of their taskId