caret_analyze.value_objects.value_object module

class caret_analyze.value_objects.value_object.ValueObject

Bases: object

Value object base class.

Classes that inherit from this class will become immutable ValueObjects, and __eq__ and __hash__ will be calculated based on public properties.

Note:

Since the hash value is immutable, inherited classes can be used as a dictionary type key. It is also suitable for cache use and does not unintentionally change properties.