Closed soygul closed 8 years ago
http://programmers.stackexchange.com/questions/151733/if-immutable-objects-are-good-why-do-people-keep-creating-mutable-objects
Of course, down side is we need to make Chat.List<Message> immutable which would waste huge memory on an Android system.. though making Message itself immutable is OK.
Chat.List<Message>
Message
Done.
http://programmers.stackexchange.com/questions/151733/if-immutable-objects-are-good-why-do-people-keep-creating-mutable-objects
Of course, down side is we need to make
Chat.List<Message>
immutable which would waste huge memory on an Android system.. though makingMessage
itself immutable is OK.