Top "Comparison" questions

Questions about data comparison and efficient ways to accomplish it.

How do I compare two Integers?

I have to compare two Integer objects (not int). What is the canonical way to compare them? Integer x = ... Integer …

java comparison object-comparison
Comparing object properties in c#

This is what I've come up with as a method on a class inherited by many of my other classes. …

c# object properties comparison
Checking images for similarity with OpenCV

Does OpenCV support the comparison of two images, returning some value (maybe a percentage) that indicates how similar these images …

image opencv comparison similarity
How to simplify a null-safe compareTo() implementation?

I'm implementing compareTo() method for a simple class such as this (to be able to use Collections.sort() and other …

java refactoring comparison null compareto
How does tuple comparison work in Python?

I have been reading the Core Python programming book, and the author shows an example like: (4, 5) < (3, 5) # Equals false So, …

python comparison tuples
Advantages of SQL Server 2008 over SQL Server 2005?

What are the key differences between Microsoft's SQL Server 2005 and SQL Server 2008? Are there any compelling reasons for upgrading (any …

sql-server-2005 sql-server-2008 comparison
Comparing boxed Long values 127 and 128

I want to compare two Long objects values using if conditions. When these values are less than 128, the if condition …

java comparison autoboxing
How to compare two JSON objects with the same elements in a different order equal?

How can I test whether two JSON objects are equal in python, disregarding the order of lists? For example ... JSON …

python json django comparison
How is __eq__ handled in Python and in what order?

Since Python does not provide left/right versions of its comparison operators, how does it decide which function to call? …

python comparison user-defined
Comparing two .jar files

How do I compare two .jar files? Both of them have compiled .class files. I want the difference in terms …

java jar comparison diff