Skip to content

Implementation Role Feature 26

Max Leuthäuser edited this page Oct 16, 2015 · 3 revisions

Title

Compartments have their own identity

Description

With compartments as Traits or classes SCROLL treats them as first-class entities at instance level.

Implementation

You can compare compartment instances based on their implementation of equals and hashCode functions.

Additional hints

You can always override the equals and hashCode functions on your compartment traits/classes to implement you own custom identity behavior.

Clone this wiki locally