Is it possible to enforce the value of a property to be obtained only by another class?
I have val itemValue by ItemValueDelegator() and ItemValueDelegator returns an enum (ItemValue) after some business rule logic.
can I enforce somehow that the value of itemValue is always obtained from ItemValueDelegator?
I want to make impossible to do: val itemValue = ItemValue.STOCK