How to create immutable class in Java | Hacker News Reader