org.vfny.geoserver.global.dto
Class EqualsLibrary

java.lang.Object
  extended byorg.vfny.geoserver.global.dto.EqualsLibrary

public final class EqualsLibrary
extends java.lang.Object

Utility methods with custom equals implementation against Maps and Lists.

Static Library class for testing equality of complex structures independant of their contents.


Method Summary
static boolean equals(java.util.List a, java.util.List b)
          equals purpose.
static boolean equals(java.util.Map a, java.util.Map b)
          equals purpose.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

equals

public static boolean equals(java.util.List a,
                             java.util.List b)
equals purpose.

Performs a complex equality check between two Lists

Parameters:
a - One List to be compared
b - The other List to be compared
Returns:
true if they are equal
See Also:
List, Object.equals(java.lang.Object)

equals

public static boolean equals(java.util.Map a,
                             java.util.Map b)
equals purpose.

Performs a complex equality check between two Maps

Parameters:
a - One Map to be compared
b - The other Map to be compared
Returns:
true if they are equal
See Also:
Map, Object.equals(java.lang.Object)