@ SuppressWarnings ( "unchecked" ) protected ResultQueueEntry < T > toResultQueueEntryForEquals ( Object obj ) { if ( ! ( obj instanceof ResultQueueEntry ) || obj == null ) { return null ; } ResultQueueEntry < T > other = ( ResultQueueEntry < T > ) obj ; return type == other . type && getClass ( ) == other . getClass ( ) ? other : null ; }
This is a utility function for checking equality between this and another ResultQueueEntry .