If your class produces objects that never change, you can make these objects compile-time constants.
To do this, define a const constructor and make sure that all instance variables are final.
To create a compile-time constant using a constant constructor, put the const keyword before the constructor name.