Class AbstractIdBasedObjectMatcher<T,U extends IComparedObjects<T>>
java.lang.Object
com._1c.g5.v8.dt.compare.matching.AbstractIdBasedObjectMatcher<T,U>
- Type Parameters:
T
- the type of objects to be matchedU
- the type of compared object provider supporting identification
- All Implemented Interfaces:
IObjectMatcher<T,
U>
- Direct Known Subclasses:
AbstractMultiObjectMatcher
,AbstractObjectMatcher
,BslModuleSectionDescriptionMatcher
public abstract class AbstractIdBasedObjectMatcher<T,U extends IComparedObjects<T>>
extends Object
implements IObjectMatcher<T,U>
A matcher based on the object identifier.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract U
Creates an empty instance of compared objects to be filled by the matcher.protected abstract Object
getId
(T object, ComparisonSide side) For the specified compared object returns its identifier.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com._1c.g5.v8.dt.compare.matching.IObjectMatcher
match
-
Constructor Details
-
AbstractIdBasedObjectMatcher
public AbstractIdBasedObjectMatcher()
-
-
Method Details
-
getId
For the specified compared object returns its identifier.- Parameters:
object
- the compared object to get an identifier of its side for, cannot benull
side
- the side of the compared object, cannot benull
- Returns:
- identifier or
null
if the side is empty
-
createComparedObjectsInstance
Creates an empty instance of compared objects to be filled by the matcher.- Returns:
- a new intance of compared objects, never
null
-