Compartments have their own identity
With compartments as Traits or classes SCROLL treats them as first-class entities at instance level.
You can compare compartment instances based on their implementation of equals and hashCode functions.
equals
hashCode
You can always override the equals and hashCode functions on your compartment traits/classes to implement you own custom identity behavior.
There was an error while loading. Please reload this page.