Class TreeElementDiff
java.lang.Object
io.bdeploy.bhive.objects.view.scanner.TreeElementDiff
Represents a single difference when comparing two
TreeViews.- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic TreeElementDiffcontent(ElementView left, ElementView right, Tree.EntryType leftType, Tree.EntryType rightType) getLeft()getRight()getType()static TreeElementDiffonlyLeft(ElementView element, Tree.EntryType type) static TreeElementDiffonlyRight(ElementView element, Tree.EntryType type) toString()
-
Method Details
-
onlyLeft
- Parameters:
element- theElementViewonly present in the 'left'TreeViewtype- the advertisedTree.EntryTypein the sourceTree.- Returns:
- the
TreeElementDiffcorresponding to theElementView.
-
onlyRight
- Parameters:
element- theElementViewonly present in the 'right'TreeViewtype- the advertisedTree.EntryTypein the sourceTree.- Returns:
- the
TreeElementDiffcorresponding to theElementView.
-
content
public static TreeElementDiff content(ElementView left, ElementView right, Tree.EntryType leftType, Tree.EntryType rightType) - Parameters:
left- theElementViewpresent in the 'left'TreeViewright- theElementViewpresent in the 'right'TreeViewleftType- the advertisedTree.EntryTypeof the 'left'ElementViewthe sourceTree.rightType- the advertisedTree.EntryTypeof the 'left'ElementViewthe sourceTree.- Returns:
- the
TreeElementDiffcorresponding to theElementViews present in bothTreeViews.
-
getLeft
- Returns:
- the 'left'
ElementView. Not set iftypeisTreeElementDiff.DifferenceType.ONLY_RIGHT.
-
getLeftType
- Returns:
- the type of the 'left'
ElementView. Not set iftypeisTreeElementDiff.DifferenceType.ONLY_RIGHT.
-
getRight
- Returns:
- the 'right'
ElementView. Not set iftypeisTreeElementDiff.DifferenceType.ONLY_LEFT.
-
getRightType
- Returns:
- the type of the 'right'
ElementView. Not set iftypeisTreeElementDiff.DifferenceType.ONLY_LEFT.
-
getType
- Returns:
- the type of the difference.
-
toString
-