Compare-object (microsoft.powershell.utility), The compare-object cmdlet compares sets objects. set objects "reference set," set "difference set." result . https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/compare-object?view=powershell-5.1 Comparing objects java - javabeat, Comparing objects java java comparing object straight . compare objects java. . http://javabeat.net/comparing-objects-in-java/ How compare java objects - stack overflow, I java objects instantiated class. myclass myclass1 = myclass(); myclass myclass2 = myclass(); set . https://stackoverflow.com/questions/16069106/how-to-compare-two-java-objects