问题
I've got the answer on how to compare all attributes between two classes on this question, but my classes also have DateTime attributes that are defined on the fly, this way I cannot compare them because the DateTime on each class will have seconds of difference.
How can I compare two classes attributes excluding some attributes? In this example, excluding the attribute z.
case class Rect(x: Int, y: Int, z: Double)
case class Squa(x: Int, y: Int, z: Double)
来源:https://stackoverflow.com/questions/64593358/how-to-compare-all-attributes-between-classes-except-a-few