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 TypeMethodDescriptionboolean
Returns 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.int
hashCode()
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 benull
otherSymlink
- the other symbolic link, may benull
ancestorSymlink
- the common ancestor symbolic link, may benull
-
ComparedSymlinks
public ComparedSymlinks()Constructs an empty object.
-
-
Method Details
-
getSymlink
Description copied from interface:IMatchingSymlinks
Returns the symbolic link of the object for the specified side.- Specified by:
getSymlink
in interfaceIMatchingSymlinks
- Parameters:
side
- the side, notnull
- Returns:
- the symbolic link, may be
null
-
getMainSymlink
Description copied from interface:IMatchingSymlinks
Returns the symbolic link on the main side.- Specified by:
getMainSymlink
in interfaceIMatchingSymlinks
- Returns:
- main symlink or
null
-
getOtherSymlink
Description copied from interface:IMatchingSymlinks
Returns the symbolic link on the other side.- Specified by:
getOtherSymlink
in interfaceIMatchingSymlinks
- Returns:
- other symlink or
null
-
getCommonAncestorSymlink
Description copied from interface:IMatchingSymlinks
Returns the symbolic link on the common ancestor side.- Specified by:
getCommonAncestorSymlink
in interfaceIMatchingSymlinks
- Returns:
- common ancestor symlink or
null
-
hashCode
public int hashCode() -
equals
-