Class ClassComparer
java.lang.Object
org.eclipse.collections.impl.test.ClassComparer
This class will compare the method signatures between two classes. The comparison
can be based on the following method information:
- Method Name
- Method Name + Parameter Types
- Method Name + Return Type
- Method Name + Parameter Types + Return Type
The operations that can be used to compare the method signatures of two classes are:
- Intersection
- Difference
- Symmetric difference
- isProperSubsetOf
- isProperSupersetOf
-
Constructor Summary
ConstructorDescriptionClassComparer
(boolean includeParameterTypesInMethods, boolean includeReturnTypes, boolean includePackageNames) ClassComparer
(Appendable out) ClassComparer
(Appendable out, boolean includeParameterTypesInMethods, boolean includeReturnTypes, boolean includePackageNames) -
Method Summary
Modifier and TypeMethodDescriptioncompareAndPrint
(Class<?> leftClass, Class<?> rightClass) difference
(Class<?> leftClass, Class<?> rightClass) getMethodNames
(Class<?> classOne) void
static boolean
isProperSubsetOf
(Class<?> subsetClass, Class<?> supersetClass) static boolean
isProperSupersetOf
(Class<?> supersetClass, Class<?> subsetClass) printClass
(Class<?> clazz) printDifference
(Class<?> leftClass, Class<?> rightClass) printIntersection
(Class<?> leftClass, Class<?> rightClass) printSymmetricDifference
(Class<?> leftClass, Class<?> rightClass) symmetricDifference
(Class<?> leftClass, Class<?> rightClass)
-
Constructor Details
-
ClassComparer
public ClassComparer() -
ClassComparer
-
ClassComparer
public ClassComparer(boolean includeParameterTypesInMethods, boolean includeReturnTypes, boolean includePackageNames) -
ClassComparer
public ClassComparer(Appendable out, boolean includeParameterTypesInMethods, boolean includeReturnTypes, boolean includePackageNames)
-
-
Method Details
-
isProperSupersetOf
-
isProperSubsetOf
-
compare
-
difference
-
printDifference
-
symmetricDifference
-
printSymmetricDifference
-
intersect
-
printIntersection
-
printClass
-
compareAndPrint
-
getMethodNames
-
includeObjectMethods
public void includeObjectMethods()
-