Make the class as immutable.