Class ClassComparer

java.lang.Object
org.eclipse.collections.impl.test.ClassComparer

public class ClassComparer extends Object
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
  • Field Details

    • SYMMETRIC_DIFFERENCE

      private static final String SYMMETRIC_DIFFERENCE
      See Also:
    • INTERSECTION

      private static final String INTERSECTION
      See Also:
    • DIFFERENCE

      private static final String DIFFERENCE
      See Also:
    • includeParameterTypesInMethods

      private final boolean includeParameterTypesInMethods
    • includeReturnTypes

      private final boolean includeReturnTypes
    • includePackageNames

      private final boolean includePackageNames
    • includeObjectMethods

      private boolean includeObjectMethods
    • appendable

      private final Appendable appendable
  • Constructor Details

    • ClassComparer

      public ClassComparer()
    • ClassComparer

      public ClassComparer(Appendable out)
    • ClassComparer

      public ClassComparer(boolean includeParameterTypesInMethods, boolean includeReturnTypes, boolean includePackageNames)
    • ClassComparer

      public ClassComparer(Appendable out, boolean includeParameterTypesInMethods, boolean includeReturnTypes, boolean includePackageNames)
  • Method Details