You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need to formalize this equals and hashcode contract:
Two implementations of the Vajram_Fac interface of the same vajram must always be equal if they have the same facet values irrespective of implementation.
Two implementations of the Vajram_Req interface of the same vajram must always be equal if they have the same input values irrespective of the implementation.
(This is analogous to the equals contract mandated in the Set and List interfaces - this is the reason and array list and a linked list are equal if they have the same elements in the same order even though they are different classes)
We need to do this to abstract out implementation details like serialization protocols etc of facets and request interfaces.
WE can do this in two ways:
Just document this and implement the logic in all impl classes
Make the Vajram_Fac and Vajram_Req interfaces into abstract classes which have a final equals method which implements this contract.
The text was updated successfully, but these errors were encountered:
We need to formalize this equals and hashcode contract:
Two implementations of the Vajram_Fac interface of the same vajram must always be equal if they have the same facet values irrespective of implementation.
Two implementations of the Vajram_Req interface of the same vajram must always be equal if they have the same input values irrespective of the implementation.
(This is analogous to the equals contract mandated in the Set and List interfaces - this is the reason and array list and a linked list are equal if they have the same elements in the same order even though they are different classes)
We need to do this to abstract out implementation details like serialization protocols etc of facets and request interfaces.
WE can do this in two ways:
The text was updated successfully, but these errors were encountered: