What does ‘switch hitter’ mean?

switch hitter

( n ) A homosexual. He’s definitely a switch hitter.