@ SuppressWarnings ( "unchecked" ) < T > T deduplicate ( T object ) { if ( deduplicateMap . containsKey ( object ) == false ) { deduplicateMap . put ( object , object ) ; } return ( T ) deduplicateMap . get ( object ) ; }
Deduplicates an object instance .