hasExactlySamePropertiesThan: definition

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

hasExactlySamePropertiesThan: definition

Andre Hora


hasExactlySamePropertiesThan: aMooseEntity

    self allDeclaredProperties size = aMooseEntity allDeclaredProperties size
        ifFalse: [^ false].
    (self allDeclaredProperties collect: [:each | each name]) =
        (aMooseEntity allDeclaredProperties collect: [:each | each name])
        ifFalse: [^ false].
    self allDeclaredProperties do: [:each |
            (each getFrom: self) = (each getFrom: aMooseEntity)
                ifFalse: [^ false]
                ].
    ^ true


if you have comment on that definition please let us know.



--
Andre Hora


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev