Re: Comparing two models for differences
Martin Matula <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.mdr.devel |
|---|---|
| Message-ID | <[email protected]> |
Where would these methods be added? Martin Holger Krug wrote: > On Tue, Jul 23, 2002 at 11:21:48AM +0200, Martin Matula wrote: > >>For some usecases it could be also better to use "metamodel-based diff", >>which is a utility that operates on MDR directly rather than on XMI >>files and compares two different datastructures using their metamodel. >>One of my students developed such a module for NetBeans as part of his >>master thesis. Hopefuly he will contribute it soon. > > > > Martin, it seems you have clever students. Could your student suggest > to add something like metamodel-based "equals(other)" and "hashCode()" > methods. Two models are equal when there diff is empty and the hash > codes of equal models is equal ?! `equals' should be trivial, > `hashCode' would be somehow more involved, but it should be possible > to rely on the hash codes of Java collections ?! >