Package com._1c.g5.v8.dt.compare.model
Class ComparedSymlinks
java.lang.Object
com._1c.g5.v8.dt.compare.model.ComparedObjects<String>
com._1c.g5.v8.dt.compare.model.ComparedSymlinks
- All Implemented Interfaces:
IComparedObjects<String>,IMatchingSymlinks,Cloneable
An object representing a tuple of compared symbolic links.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs an empty object.Constructs an object with compared symbolic links for the provided node.ComparedSymlinks(String mainSymlink, String otherSymlink, String ancestorSymlink) Constructs an object with compared symbolic links. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the symbolic link on the common ancestor side.Returns the symbolic link on the main side.Returns the symbolic link on the other side.getSymlink(ComparisonSide side) Returns the symbolic link of the object for the specified side.inthashCode()Methods inherited from class com._1c.g5.v8.dt.compare.model.ComparedObjects
clone, getCommonAncestorObject, getComparedObject, getMainObject, getObjectSide, getOrder, getOtherObject, getPath, setComparedObject, setOrder, setPath
-
Constructor Details
-
ComparedSymlinks
Constructs an object with compared symbolic links for the provided node.- Parameters:
node- the node to construct the object for, notnull
-
ComparedSymlinks
Constructs an object with compared symbolic links.- Parameters:
mainSymlink- the main symbolic link, may benullotherSymlink- the other symbolic link, may benullancestorSymlink- the common ancestor symbolic link, may benull
-
ComparedSymlinks
public ComparedSymlinks()Constructs an empty object.
-
-
Method Details
-
getSymlink
Description copied from interface:IMatchingSymlinksReturns the symbolic link of the object for the specified side.- Specified by:
getSymlinkin interfaceIMatchingSymlinks- Parameters:
side- the side, notnull- Returns:
- the symbolic link, may be
null
-
getMainSymlink
Description copied from interface:IMatchingSymlinksReturns the symbolic link on the main side.- Specified by:
getMainSymlinkin interfaceIMatchingSymlinks- Returns:
- main symlink or
null
-
getOtherSymlink
Description copied from interface:IMatchingSymlinksReturns the symbolic link on the other side.- Specified by:
getOtherSymlinkin interfaceIMatchingSymlinks- Returns:
- other symlink or
null
-
getCommonAncestorSymlink
Description copied from interface:IMatchingSymlinksReturns the symbolic link on the common ancestor side.- Specified by:
getCommonAncestorSymlinkin interfaceIMatchingSymlinks- Returns:
- common ancestor symlink or
null
-
hashCode
public int hashCode() -
equals
-