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
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 Constructor Description AbstractIdBasedObjectMatcher()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description protected abstract UcreateComparedObjectsInstance()Creates an empty instance of compared objects to be filled by the matcher.protected abstract ObjectgetId(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
-
-
-
-
Method Detail
-
getId
protected abstract Object getId(T object, ComparisonSide side)
For the specified compared object returns its identifier.- Parameters:
object- the compared object to get an identifier of its side for, cannot benullside- the side of the compared object, cannot benull- Returns:
- identifier or
nullif the side is empty
-
createComparedObjectsInstance
protected abstract U createComparedObjectsInstance()
Creates an empty instance of compared objects to be filled by the matcher.- Returns:
- a new intance of compared objects, never
null
-
-