If it were dislocated, you would know because it would likely be sticking at an odd angle or at the least a bit longer than
normal.It can and will also likely swell.
It is hard to say what you did without looking and possibly an x-ray but if it was dislocated you would likely know.
I'm betting you just sprained or stubbed it really good. I have had breaks that barely swelled at all and barely even hurt and others that were a bit painful, but swelled a lot. Just depends on the severity and location.
If everything looks okay, and works okay (just a bit painful), I wouldn't worry too much.