Hi, I need to uniquely identify messages in my app. Thus each message should contain its id. I have a couple of questions though..
- Should message generate its id privately and only provide getter for id?
- What is the best way to create ids? Any alternatives to UUID class in java?
Thanks.