The song you're thinking of is "I Gotta Feeling" by the Black Eyed Peas—released March 2009 as the second single from The E.N.D. It became a global phenomenon (#1 in 20+ countries, 14M+ US downloads) and directly references 2008 hits in its lyrics and cultural DNA.
The Black Eyed Peas' 2008–2009 dominance (Boom Boom Pow → I Gotta Feeling = 26 consecutive weeks at #1) defined the pop soundscape transition from 2008's hip-hop/dance fusion to 2009's pure electro-pop euphoria.
"I Gotta Feeling" isn't a mashup in the DJ sense—it's a cultural mashup: the sound of 2008's biggest trends distilled into 2009's biggest anthem.