Top "Equals" questions

Refers to Java equals method, indicating whether some object is "equal to" this one.

Implementing hashcode and equals for custom classes

So I have many custom classes are also have custom clases inside of them using composition. My custom classes have …

java equals hashcode abstract-data-type custom-object
Swift - UIView frame is not equal to UIView.layer.frame

I want to draw a UIView layer but when I do it the layer frame is not equal(In Preview) …

ios swift uiview equals layer
What is the standard idiom for implementing equals and hashCode in Scala?

What is the standard idiom for implementing the equals and hashCode methods in Scala? I know the preferred approach is …

scala equals hashcode
Overriding GetHashCode for mutable objects?

I've read about 10 different questions on when and how to override GetHashCode but there's still something I don't quite get. …

c# .net overriding equals gethashcode
Why == operator and equals() behave differently for values of AnyVal in Scala

In the scaladoc of scala.Any, the operator == (or, method ==) is explained: The expression x == that is equivalent to if (…

scala equals equality primitive
How do I get unit test to run in java 7: java.lang.VerifyError: Expecting a stackmap frame at branch target

Hi I am running a maven test using maven 3.0.3 with hibernate 4.0.0 Final release and spring 3.1 on jdk7 update 2. I get …

java equals spring-3 java-7 hibernate-4.x
TreeSet and equals function

There is a Java bean object which has implemented equals function based on certain criteria (Criteria A). I have a …

java equals comparator treeset
Google App Engine, JDO, and equals/hashCode

I've got an app in Google App Engine that was working fine. I realized that one on of my JDO-enhanced …

java google-app-engine equals jdo hashcode
How to quickly check if two data transfer objects have equal properties in C#?

I have these data transfer objects: public class Report { public int Id { get; set; } public int ProjectId { get; set; } //and …

c# equals dto
Comparing wrapper class with primitive using equals() gives strange behavior

Consider below code snap. we use equals() to compare objects are meaningfully equivalent or not ? Here both value are meaningfully …

java wrapper equals