Class AbstractIdBasedObjectMatcher<T,​U extends IComparedObjects<T>>

    • Constructor Detail

      • AbstractIdBasedObjectMatcher

        public AbstractIdBasedObjectMatcher()
    • Method Detail

      • getId

        protected abstract Object getId​(T object,
                                        ComparisonSide side)
        For the specified compared object returns its identifier.
        object - the compared object to get an identifier of its side for, cannot be null
        side - the side of the compared object, cannot be null
        identifier or null if the side is empty
      • createComparedObjectsInstance

        protected abstract U createComparedObjectsInstance()
        Creates an empty instance of compared objects to be filled by the matcher.
        a new intance of compared objects, never null