question: @ Override public int compareTo ( CfId < Long > other ) { if ( type < other . getType ( ) ) { return - 1 ; } else if ( type > other . getType ( ) ) { return 1 ; } else if ( id == null && other . getId ( ) != null ) { return 1 ; } else { return id . compareTo ( other . getId ( ) ) ; } }
target:  To objects of this class are the same only if both the type and the id are the same.