<human>: Can you summarize the given text in a few sentences?

I have been with my boyfriend for 2 years now. We were initially in a ldr for 10 months before I moved to another state to be with him. He is generally such a sweet, fun guy but he has strange mood swings.

He will for no reason shut down and become very passive aggressive, saying things to deliberately upset me. Then when I do become upset or hurt, he calls me childish and emotional and tells me I'm too sensitive and that he was just joking. 

Most recent episode of this was last night. We went to the gym and the whole class everything was fine, and as soon as we got in the car he shut down. Everything he said was super sarcastic and he refused to talk to me, yet said he was fine. He was so cold and it really hurt me. Then this morning, he said that he is going to trade me in because I annoy him and when I got upset he told me to grow up and that he didn't mean it. Then he told me he loved me and kissed me goodbye.

I'm at a loss of what to do now. I want to text him but I think maybe I should wait until I get home to feel out his mood. My usual course of action is to ride it out and try not to antagonize him further. We generally dont talk a out these mood swings, he acts like he did nothing strange. But I want him to know that he hurt me and that this isn't okay. Also, there is a small part of me that wants to ask him how I annoy him so I can be better. I feel like maybe I am the problem - I am very sensitive and cry easily, but I've tried to control that and don't let him see it anymore. I just don't know how to approach him now. 

Also, we never really have actual fights. I know from what he and his sister have told me that he used to have a horrible temper and even got into physical spats with one particular ex. He has never hit me or even yelled, just these bizzare hurtful mood swings.
<bot>: boyfriend of 2 years has confusing mood swings and is generally mean/cold to me without explanation. How to approach situation and make it better.